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
This commit is contained in:
Eli Friedman 2011-09-01 21:03:03 +00:00
parent bcf47a5bce
commit 81b4e434d9

View File

@ -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
}
}