This fixes PR39570.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lgtm with some minor suggestions
lib/Transforms/Scalar/LoopSink.cpp | ||
---|---|---|
206 ↗ | (On Diff #172836) | Maybe !LoopBlockNumber.count(BB)? |
210 ↗ | (On Diff #172836) | I'd do it after the empty check to put it closer to the lookup with .find below. |
test/Transforms/LICM/loopsink-pr39570.ll | ||
53 ↗ | (On Diff #172836) | 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. |