[InstSimplify] remove misleading comments; NFC
Div/rem-of-0 does not cause faults/undef (not the same as div/rem-by-0).
llvm-svn: 297029
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index 8fce163..f9c5a46 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -1031,7 +1031,7 @@
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 @@
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;