Skip to content

Commit 4a615c3

Browse files
committed
[InstCombine] Fix coding style. NFC.
1 parent 31a6f4a commit 4a615c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,10 +1330,10 @@ Instruction *InstCombinerImpl::foldAddLikeCommutative(Value *LHS, Value *RHS,
13301330
// ((X s/ C1) << C2) + X => X s% -C1 where -C1 is 1 << C2
13311331
const APInt *C1, *C2;
13321332
if (match(LHS, m_Shl(m_SDiv(m_Specific(RHS), m_APInt(C1)), m_APInt(C2)))) {
1333-
APInt one(C2->getBitWidth(), 1);
1334-
APInt minusC1 = -(*C1);
1335-
if (minusC1 == (one << *C2)) {
1336-
Constant *NewRHS = ConstantInt::get(RHS->getType(), minusC1);
1333+
APInt One(C2->getBitWidth(), 1);
1334+
APInt MinusC1 = -(*C1);
1335+
if (MinusC1 == (One << *C2)) {
1336+
Constant *NewRHS = ConstantInt::get(RHS->getType(), MinusC1);
13371337
return BinaryOperator::CreateSRem(RHS, NewRHS);
13381338
}
13391339
}

0 commit comments

Comments
 (0)