mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
The landingpad instruction isn't loop-invariant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bc4fcbbc7b
commit
da005e7d20
@ -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
Block a user