From: Eli Friedman Date: Thu, 1 Sep 2011 21:03:03 +0000 (+0000) Subject: Make isSafeToSpeculativelyExecute() return the right answer for some new instructions... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=81b4e434d98d4d2ed0a7b493b3ecd09dd7735275;p=oota-llvm.git 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 --- diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp index f54cec11e2e..73191c19658 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 } }