The landingpad instruction isn't loop-invariant.
llvm-svn: 137628
This commit is contained in:
parent
88294cdbe0
commit
9af5b22b76
|
@ -99,6 +99,9 @@ bool Loop::makeLoopInvariant(Instruction *I, bool &Changed,
|
|||
return false;
|
||||
if (I->mayReadFromMemory())
|
||||
return false;
|
||||
// The landingpad instruction is immobile.
|
||||
if (isa<LandingPadInst>(I))
|
||||
return false;
|
||||
// Determine the insertion point, unless one was given.
|
||||
if (!InsertPt) {
|
||||
BasicBlock *Preheader = getLoopPreheader();
|
||||
|
|
Loading…
Reference in New Issue