llvm-project/llvm/test/Transforms/LoopFlatten
David Green 8e9e22f07b [LoopFlatten] Fix IV increment use count
The add from the IV in the inner loop was always checking for 2 uses,
the phi and the compare. The compare could be based on the phi though,
leaving one valid use of the compare. In the testcase we could be left
with the phi and a lcssa phi as the two users, invalidly allowing
flattening where we shouldn't.

Fixes 58441

Differential Revision: https://reviews.llvm.org/D138404
2022-11-22 07:23:56 +00:00
..
limit-not-invariant.ll
loop-flatten-negative.ll
loop-flatten-simplify-cfg.ll
loop-flatten.ll
pr40581.ll
pr49571.ll
pr58865.ll [LoopFlatten] Forget all block and loop dispositions after flatten 2022-11-14 10:19:11 +08:00
widen-iv.ll
widen-iv2.ll
widen-iv3.ll
widen-pr58441.ll [LoopFlatten] Fix IV increment use count 2022-11-22 07:23:56 +00:00