Skip to content

Commit f0958ae

Browse files
author
John Criswell
committed
Merged in changes to the instruction combining pass.
llvm-svn: 15598
1 parent 7ee0099 commit f0958ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/InstructionCombining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ Instruction *InstCombiner::visitRem(BinaryOperator &I) {
829829
if (I.getType()->isSigned())
830830
if (Value *RHSNeg = dyn_castNegVal(I.getOperand(1)))
831831
if (!isa<ConstantSInt>(RHSNeg) ||
832-
cast<ConstantSInt>(RHSNeg)->getValue() >= 0) {
832+
cast<ConstantSInt>(RHSNeg)->getValue() > 0) {
833833
// X % -Y -> X % Y
834834
AddUsesToWorkList(I);
835835
I.setOperand(1, RHSNeg);

0 commit comments

Comments
 (0)