diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2017-03-06 16:49:35 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2017-03-06 16:49:35 +0000 |
| commit | 79a9ecbe802cb42f1891693243464bc69b570d8d (patch) | |
| tree | e54f7e6e08166d3ba28a4b82b621e73c07ccc50c | |
| parent | bda77397db14ebf2d4688fae28226dcdf35bda1e (diff) | |
| download | bcm5719-llvm-79a9ecbe802cb42f1891693243464bc69b570d8d.tar.gz bcm5719-llvm-79a9ecbe802cb42f1891693243464bc69b570d8d.zip | |
[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
| -rw-r--r-- | llvm/lib/Analysis/InstructionSimplify.cpp | 4 |
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; |

