File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
13271327Instruction *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}
You can’t perform that action at this time.
0 commit comments