summaryrefslogtreecommitdiff
path: root/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
commit81b4e434d98d4d2ed0a7b493b3ecd09dd7735275 (patch)
tree837037567ce7505fcd66c2d2f8ed690181111d15 /lib/VMCore/Instruction.cpp
parentbcf47a5bce48fe5f0c6ef1e803100682d001f182 (diff)
downloadllvm-81b4e434d98d4d2ed0a7b493b3ecd09dd7735275.tar.gz
llvm-81b4e434d98d4d2ed0a7b493b3ecd09dd7735275.tar.bz2
llvm-81b4e434d98d4d2ed0a7b493b3ecd09dd7735275.tar.xz
Make isSafeToSpeculativelyExecute() return the right answer for some new instructions. Found by inspection; not sure what practical impact, if any, this has.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instruction.cpp')
-rw-r--r--lib/VMCore/Instruction.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp
index f54cec11e2..73191c1965 100644
--- a/lib/VMCore/Instruction.cpp
+++ b/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
}
}