summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Instruction.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-09-01 21:03:03 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-09-01 21:03:03 +0000
commitb053ac7e0ca2523cafb858c844382fabd66de97f (patch)
tree5cda1782d124abb80cd0f3f0d4ce04cb6869529c /llvm/lib/VMCore/Instruction.cpp
parent00d8c245b26d74415a712cb99687ac9ffe01fbf4 (diff)
downloadbcm5719-llvm-b053ac7e0ca2523cafb858c844382fabd66de97f.tar.gz
bcm5719-llvm-b053ac7e0ca2523cafb858c844382fabd66de97f.zip
Make isSafeToSpeculativelyExecute() return the right answer for some new instructions. Found by inspection; not sure what practical impact, if any, this has.
llvm-svn: 138962
Diffstat (limited to 'llvm/lib/VMCore/Instruction.cpp')
-rw-r--r--llvm/lib/VMCore/Instruction.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Instruction.cpp b/llvm/lib/VMCore/Instruction.cpp
index f54cec11e2e..73191c19658 100644
--- a/llvm/lib/VMCore/Instruction.cpp
+++ b/llvm/lib/VMCore/Instruction.cpp
@@ -436,6 +436,10 @@ bool Instruction::isSafeToSpeculativelyExecute() const {
case Unwind:
case Unreachable:
case Fence:
+ case LandingPad:
+ case AtomicRMW:
+ case AtomicCmpXchg:
+ case Resume:
return false; // Misc instructions which have effects
}
}
OpenPOWER on IntegriCloud