llvm-project/llvm/test/Transforms/LCSSA
Bruno Cardoso Lopes bad65c3b70 [LCSSA] Handle PHI insertion in disjoint loops
Take two disjoint Loops L1 and L2.

LoopSimplify fails to simplify some loops (e.g. when indirect branches
are involved). In such situations, it can happen that an exit for L1 is
the header of L2. Thus, when we create PHIs in one of such exits we are
also inserting PHIs in L2 header.

This could break LCSSA form for L2 because these inserted PHIs can also
have uses in L2 exits, which are never handled in the current
implementation. Provide a fix for this corner case and test that we
don't assert/crash on that.

Differential Revision: http://reviews.llvm.org/D6624

rdar://problem/19166231

llvm-svn: 224740
2014-12-22 22:35:46 +00:00
..
2006-06-03-IncorrectIDFPhis.ll
2006-06-12-MultipleExitsSameBlock.ll
2006-07-09-NoDominator.ll
2006-10-31-UnreachableBlock-2.ll
2006-10-31-UnreachableBlock.ll
2007-07-12-LICM-2.ll
2007-07-12-LICM-3.ll
2007-07-12-LICM.ll
basictest.ll
indirectbr.ll [LCSSA] Handle PHI insertion in disjoint loops 2014-12-22 22:35:46 +00:00
invoke-dest.ll
unreachable-use.ll
unused-phis.ll