diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-08-17 20:36:44 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-08-17 20:36:44 +0000 |
commit | a9ee09f4be8b073e88f573eac520dcc8550034dc (patch) | |
tree | ee458e75afa905a9041568b9a85272f40a02d0cc /llvm/lib/Analysis/LoopInfo.cpp | |
parent | e41124ade18ac99f2453586dfa1de4b6973b78d7 (diff) | |
download | llvm-a9ee09f4be8b073e88f573eac520dcc8550034dc.zip llvm-a9ee09f4be8b073e88f573eac520dcc8550034dc.tar.gz llvm-a9ee09f4be8b073e88f573eac520dcc8550034dc.tar.bz2 |
Revert r137655. There is some question about whether the 'landingpad'
instruction should be marked as potentially reading and/or writing memory.
llvm-svn: 137863
Diffstat (limited to 'llvm/lib/Analysis/LoopInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp index 9a7c50d..36fd598 100644 --- a/llvm/lib/Analysis/LoopInfo.cpp +++ b/llvm/lib/Analysis/LoopInfo.cpp @@ -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(); |