Div/rem-of-0 does not cause faults/undef (not the same as div/rem-by-0).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297029
91177308-0d34-0410-b5e6-
96231b3b80d8
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;
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;