3 Commits

Author SHA1 Message Date
Max Kazantsev
606a000d1a [LoopInstSimplify] Ignore users in unreachable blocks. PR55072
Logic in this pass assumes that all users of loop instructions are
either in the same loop or are LCSSA Phis. In fact, there can also
be users in unreachable blocks that currently break assertions.
Such users don't need to go to the next round of simplifications.

Reviewed By: fhahn
Differential Revision: https://reviews.llvm.org/D124368
2022-04-25 17:35:28 +07:00
Max Kazantsev
ab17873ee6 [Test] Simplify test for PR55072 2022-04-25 17:20:34 +07:00
Max Kazantsev
8ac447adc8 [Test] Add test for PR55072 2022-04-25 15:18:51 +07:00