Make loop preheader insertion in LoopSimplify handle the case where the loop header...
authorEli Friedman <eli.friedman@gmail.com>
Thu, 15 Dec 2011 00:50:34 +0000 (00:50 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 15 Dec 2011 00:50:34 +0000 (00:50 +0000)
commit7d1ff37118d5b3febae818676d9dd9513057fed7
treed78925be83234990d0122a68e5ba46952bd526fd
parent7a13b72bbbadaa9274f6a58774970b9b95706330
Make loop preheader insertion in LoopSimplify handle the case where the loop header is a landing pad correctly (by splitting the landingpad out of the loop header).  Make some adjustments to the rest of LoopSimplify to make it clear that the rest of LoopSimplify isn't making bad assumptions about the presence of landing pads.  PR11575.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146621 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopSimplify.cpp
test/Transforms/LoopSimplify/2011-12-14-LandingpadHeader.ll [new file with mode: 0644]