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 | 81b4e434d98d4d2ed0a7b493b3ecd09dd7735275 (patch) | |
tree | 837037567ce7505fcd66c2d2f8ed690181111d15 /lib | |
parent | bcf47a5bce48fe5f0c6ef1e803100682d001f182 (diff) | |
download | external_llvm-81b4e434d98d4d2ed0a7b493b3ecd09dd7735275.zip external_llvm-81b4e434d98d4d2ed0a7b493b3ecd09dd7735275.tar.gz external_llvm-81b4e434d98d4d2ed0a7b493b3ecd09dd7735275.tar.bz2 |
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')
-rw-r--r-- | lib/VMCore/Instruction.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp index f54cec1..73191c1 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 } } |