diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-09-01 21:03:03 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-09-01 21:03:03 +0000 |
commit | b053ac7e0ca2523cafb858c844382fabd66de97f (patch) | |
tree | 5cda1782d124abb80cd0f3f0d4ce04cb6869529c /llvm/lib/VMCore/Instruction.cpp | |
parent | 00d8c245b26d74415a712cb99687ac9ffe01fbf4 (diff) | |
download | bcm5719-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.cpp | 4 |
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 } } |