diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-08-15 21:14:31 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-08-15 21:14:31 +0000 |
commit | 9d6070f161d89376c7c834950f518e25e34d7ce8 (patch) | |
tree | 5e19b166cd4a7abe7849411136fd44f51ce9fe71 /lib/Analysis/LoopInfo.cpp | |
parent | 0455bb89cde2c1153c6ed1a5bf5b380ed6d43675 (diff) |
Duncan pointed out that the LandingPadInst might read memory. (It might also
write to memory.) Marking it as such makes some checks for immobility go away.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopInfo.cpp')
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 36fd598d13..9a7c50d7fa 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -99,9 +99,6 @@ 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(); |