2 Commits

Author SHA1 Message Date
Roman Lebedev
72482c5167
[NFC] Port all LoopFlatten tests to -passes= syntax 2022-12-08 02:38:46 +03:00
luxufan
98eb917939 [LoopFlatten] Forget all block and loop dispositions after flatten
Method forgetLoop only forgets expression of phi or its users. SCEV
expressions except the above mentioned may still has loop dispositions
that point to the destroyed loop, which might cause a crash.

Fixes: https://github.com/llvm/llvm-project/issues/58865

Reviewed By: nikic, fhahn

Differential Revision: https://reviews.llvm.org/D137651
2022-11-14 10:19:11 +08:00