Skip to content

Commit ee4c1a2

Browse files
committed
style fixes
1 parent 327aaed commit ee4c1a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,10 +1320,10 @@ Instruction *InstCombinerImpl::foldICmpWithZero(ICmpInst &Cmp) {
13201320
return nullptr;
13211321
}
13221322

1323-
// Fold icmp eq (num + (val - 1)) & -val, num
1324-
// to
1325-
// icmp eq 0, (and num, val - 1)
1326-
// For val being power of two
1323+
/// Fold icmp eq (num + (val - 1)) & -val, num
1324+
/// to
1325+
/// icmp eq 0, (and num, val - 1)
1326+
/// For val being power of two
13271327
Instruction *InstCombinerImpl::foldIsMultipleOfAPowerOfTwo(ICmpInst &Cmp) {
13281328
Value *Num;
13291329
CmpPredicate Pred;
@@ -1343,8 +1343,8 @@ Instruction *InstCombinerImpl::foldIsMultipleOfAPowerOfTwo(ICmpInst &Cmp) {
13431343
return nullptr;
13441344

13451345
// Create new icmp eq (num & (val - 1)), 0
1346-
auto NewAnd = Builder.CreateAnd(Num, *Mask);
1347-
auto Zero = Constant::getNullValue(Num->getType());
1346+
auto *NewAnd = Builder.CreateAnd(Num, *Mask);
1347+
auto *Zero = Constant::getNullValue(Num->getType());
13481348

13491349
return new ICmpInst(Pred, NewAnd, Zero);
13501350
}

0 commit comments

Comments
 (0)