summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LoopInfo.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-08-15 21:14:31 +0000
committerBill Wendling <isanbard@gmail.com>2011-08-15 21:14:31 +0000
commite86965ee19943aa5b4dc4b4cabad2a0c25857f77 (patch)
tree58e7cce41ad3a8f319298eb4d2e00780b978fbde /llvm/lib/Analysis/LoopInfo.cpp
parent4d05198d1f3f792a61641627c3abbb1158acea8c (diff)
downloadbcm5719-llvm-e86965ee19943aa5b4dc4b4cabad2a0c25857f77.tar.gz
bcm5719-llvm-e86965ee19943aa5b4dc4b4cabad2a0c25857f77.zip
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. llvm-svn: 137655
Diffstat (limited to 'llvm/lib/Analysis/LoopInfo.cpp')
-rw-r--r--llvm/lib/Analysis/LoopInfo.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp
index 36fd598d13c..9a7c50d7fa4 100644
--- a/llvm/lib/Analysis/LoopInfo.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud