forked from OSchip/llvm-project
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:
parent
00d8c245b2
commit
b053ac7e0c
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue