Skip to content

Commit 8d6be44

Browse files
AlexMacleannikic
andauthored
Update llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
Co-authored-by: Nikita Popov <[email protected]>
1 parent 16bc374 commit 8d6be44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,7 @@ Value *InstCombinerImpl::foldSelectWithConstOpToBinOp(ICmpInst *Cmp,
19041904
BinOpc == Instruction::Mul) {
19051905
Instruction *OldBinOp = cast<BinaryOperator>(TrueVal);
19061906
if (OldBinOp->hasNoSignedWrap() &&
1907-
willNotOverflow(BinOpc, RHS, C2, *BinOpInst, /*IsSigned*/ true))
1907+
willNotOverflow(BinOpc, RHS, C2, *BinOpInst, /*IsSigned=*/true))
19081908
BinOpInst->setHasNoSignedWrap();
19091909
if (OldBinOp->hasNoUnsignedWrap() &&
19101910
willNotOverflow(BinOpc, RHS, C2, *BinOpInst, /*IsSigned*/ false))

0 commit comments

Comments
 (0)