3 Commits

Author SHA1 Message Date
Nikita Popov
11be5cc001 [LoopSimplifyCFG] Convert test to opaque pointers (NFC) 2023-01-05 14:05:39 +01:00
Max Kazantsev
82309831c3 [LoopSimplifyCFG] Prevent use-def dominance breach by handling dead exits. PR56243
One of the transforms in LoopSimplifyCFG demands that the LCSSA form is
truly maintained for all values, tokens included, otherwise it may end up creating
a use that is not dominated by def (and Phi creation for tokens is impossible).
Detect this situation and prevent transform for it early.

Differential Revision: https://reviews.llvm.org/D129984
Reviewed By: efriedma
2022-07-19 15:54:12 +07:00
Max Kazantsev
c52d447713 [Test] Mode test for pr56243 from LICM to LoopSimplifyCFG 2022-07-18 12:37:01 +07:00