mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-24 19:44:49 +00:00
fixed typos in comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212424 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5fd556eeb5
commit
466769dd97
@ -1984,7 +1984,7 @@ bool llvm::isSafeToSpeculativelyExecute(const Value *V,
|
||||
return true;
|
||||
case Instruction::UDiv:
|
||||
case Instruction::URem:
|
||||
// x / y is undefined if y == 0, but calcuations like x / 3 are safe.
|
||||
// x / y is undefined if y == 0, but calculations like x / 3 are safe.
|
||||
return isKnownNonZero(Inst->getOperand(1), TD);
|
||||
case Instruction::SDiv:
|
||||
case Instruction::SRem: {
|
||||
@ -2012,7 +2012,7 @@ bool llvm::isSafeToSpeculativelyExecute(const Value *V,
|
||||
case Instruction::Call: {
|
||||
if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(Inst)) {
|
||||
switch (II->getIntrinsicID()) {
|
||||
// These synthetic intrinsics have no side-effects, and just mark
|
||||
// These synthetic intrinsics have no side-effects and just mark
|
||||
// information about their operands.
|
||||
// FIXME: There are other no-op synthetic instructions that potentially
|
||||
// should be considered at least *safe* to speculate...
|
||||
|
Loading…
x
Reference in New Issue
Block a user