File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2501,14 +2501,14 @@ Instruction *InstCombinerImpl::visitAnd(BinaryOperator &I) {
2501
2501
2502
2502
if (I.getType ()->isIntOrIntVectorTy (1 )) {
2503
2503
if (auto *SI0 = dyn_cast<SelectInst>(Op0)) {
2504
- if (auto *I =
2504
+ if (auto *R =
2505
2505
foldAndOrOfSelectUsingImpliedCond (Op1, *SI0, /* IsAnd */ true ))
2506
- return I ;
2506
+ return R ;
2507
2507
}
2508
2508
if (auto *SI1 = dyn_cast<SelectInst>(Op1)) {
2509
- if (auto *I =
2509
+ if (auto *R =
2510
2510
foldAndOrOfSelectUsingImpliedCond (Op0, *SI1, /* IsAnd */ true ))
2511
- return I ;
2511
+ return R ;
2512
2512
}
2513
2513
}
2514
2514
@@ -3287,14 +3287,14 @@ Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) {
3287
3287
Type *Ty = I.getType ();
3288
3288
if (Ty->isIntOrIntVectorTy (1 )) {
3289
3289
if (auto *SI0 = dyn_cast<SelectInst>(Op0)) {
3290
- if (auto *I =
3290
+ if (auto *R =
3291
3291
foldAndOrOfSelectUsingImpliedCond (Op1, *SI0, /* IsAnd */ false ))
3292
- return I ;
3292
+ return R ;
3293
3293
}
3294
3294
if (auto *SI1 = dyn_cast<SelectInst>(Op1)) {
3295
- if (auto *I =
3295
+ if (auto *R =
3296
3296
foldAndOrOfSelectUsingImpliedCond (Op0, *SI1, /* IsAnd */ false ))
3297
- return I ;
3297
+ return R ;
3298
3298
}
3299
3299
}
3300
3300
You can’t perform that action at this time.
0 commit comments