Skip to content

Commit 305c6c8

Browse files
committed
Fixup
1 parent fea0bde commit 305c6c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ Instruction *InstCombinerImpl::visitMul(BinaryOperator &I) {
534534
Shl->setHasNoUnsignedWrap(HasNUW);
535535
return Shl;
536536
}
537-
if (Value *Res = tryGetLog2(Op0, /*AssumeNonZero=*/false)) {
537+
if (Value *Res = tryGetLog2(Op1, /*AssumeNonZero=*/false)) {
538538
BinaryOperator *Shl = BinaryOperator::CreateShl(Op0, Res);
539539
// We can only propegate nuw flag.
540540
Shl->setHasNoUnsignedWrap(HasNUW);

0 commit comments

Comments
 (0)