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
This commit is contained in:
Eli Friedman 2011-09-01 21:03:03 +00:00
parent 00d8c245b2
commit b053ac7e0c
1 changed files with 4 additions and 0 deletions

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