This fixes PR39570.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
lgtm with some minor suggestions
lib/Transforms/Scalar/LoopSink.cpp | ||
---|---|---|
202 | I'd do it after the empty check to put it closer to the lookup with .find below. | |
206 | Maybe !LoopBlockNumber.count(BB)? | |
test/Transforms/LICM/loopsink-pr39570.ll | ||
54 | In the future, I recommend using creduce instead of bugpoint to reduce test cases like these. You will end up with a test that is much less fragile to changes in the way we fold undef. |
I'd do it after the empty check to put it closer to the lookup with .find below.