llvm-6502/include/llvm/Transforms
Bruno Cardoso Lopes a559a2317c [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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224740 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-22 22:35:46 +00:00
..
IPO Add control of function merging to the PMBuilder. 2014-09-13 21:46:00 +00:00
Utils [LCSSA] Handle PHI insertion in disjoint loops 2014-12-22 22:35:46 +00:00
Instrumentation.h InstrProf: An intrinsic and lowering for instrumentation based profiling 2014-12-08 18:02:35 +00:00
IPO.h Move -verify-use-list-order into llvm-uselistorder 2014-07-25 17:13:03 +00:00
ObjCARC.h
Scalar.h [SeparateConstOffsetFromGEP] Allow SeparateConstOffsetFromGEP pass to lower GEPs. 2014-11-19 06:24:44 +00:00
Vectorize.h