[NFC][InstCombine] PHI-aware aggregate reconstruction: don't capture UseBB in lambdas...
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 17 Aug 2020 19:53:23 +0000 (22:53 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 17 Aug 2020 21:45:18 +0000 (00:45 +0300)
commitf4f673e0e36937954c2410b2dfd5ca8e39ccffa5
tree21bedd26a8733b5630510ec1333e42875bd5151e
parent4973ca3eac998068cebe7bd23f47876e7c92b87f
[NFC][InstCombine] PHI-aware aggregate reconstruction: don't capture UseBB in lambdas, take it as argument

In a following patch, UseBB will be detected later,
so capturing it is potentially error-prone (capture by ref vs by val).

Also, parametrized UseBB will likely be needed
for multiple levels of PHI indirections later on anyways.
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp