llvm-project/llvm/test/Transforms/LoopFlatten
Craig Topper d73684e223 [LoopFlatten] Fix crash if the inner loop trip count comes from a sext instruction.
If we look through a truncate in matchLinearIVUser, it's possible
we find a sext/zext instruction that didn't come from widening.
This will fail the MatchedItCount->getType() == InnerInductionPHI->getType()
assertion.

Fix this by checking that we did not look through a truncate already.

Reviewed By: SjoerdMeijer

Differential Revision: https://reviews.llvm.org/D127149
2022-06-07 08:21:21 -07:00
..
limit-not-invariant.ll
loop-flatten-negative.ll [LoopFlatten] Fix assertion failure 2021-08-19 13:18:57 +01:00
loop-flatten-simplify-cfg.ll
loop-flatten.ll [LoopFlatten] Fix missed LoopFlatten opportunity 2021-08-02 11:09:54 +01:00
pr40581.ll
pr49571.ll
widen-iv.ll [LoopFlatten] Fix crash if the inner loop trip count comes from a sext instruction. 2022-06-07 08:21:21 -07:00
widen-iv2.ll [LoopFlatten] Updating Phi nodes after IV widening 2021-09-28 15:09:20 +01:00
widen-iv3.ll [LoopFlatten] Bail if we can't perform flattening after IV widening 2021-09-29 19:53:34 +01:00