Commit Graph

3 Commits

Author SHA1 Message Date
Max Kazantsev 664e1da485 [LoopLoadElim] Make sure all loops are in simplify form. PR48150
LoopLoadElim may end up expanding an AddRec from a loop
which is not the current loop. This loop may not be in simplify
form. We figure it out after the no-return point, so cannot bail
in this case.

AddRec requires simplify form to expand. The only way to ensure
this does not crash is to simplify all loops beforehand.

The issue only exists in new PM. Old PM requests LoopSimplify
required pass and it simplifies all loops before the opt begins.

Differential Revision: https://reviews.llvm.org/D91525
Reviewed By: asbirlea, aeubanks
2020-11-26 10:51:11 +07:00
Max Kazantsev 813781a923 [Test] Add Check statement 2020-11-12 10:47:34 +07:00
Max Kazantsev c2a7d9f317 [Test] Add failing test for PR48150 2020-11-11 19:11:32 +07:00