summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/InstructionSimplify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index 8fce1630aee..f9c5a46c787 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -1031,7 +1031,7 @@ static Value *SimplifyDiv(Instruction::BinaryOps Opcode, Value *Op0, Value *Op1,
if (match(Op0, m_Undef()))
return Constant::getNullValue(Op0->getType());
- // 0 / X -> 0, we don't need to preserve faults!
+ // 0 / X -> 0
if (match(Op0, m_Zero()))
return Op0;
@@ -1201,7 +1201,7 @@ static Value *SimplifyRem(Instruction::BinaryOps Opcode, Value *Op0, Value *Op1,
if (match(Op0, m_Undef()))
return Constant::getNullValue(Op0->getType());
- // 0 % X -> 0, we don't need to preserve faults!
+ // 0 % X -> 0
if (match(Op0, m_Zero()))
return Op0;
OpenPOWER on IntegriCloud