Skip to content

Commit 2a904f4

Browse files
committed
[InstCombine] Rename some shadow variables; NFC
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D159325
1 parent 119194a commit 2a904f4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,14 +2501,14 @@ Instruction *InstCombinerImpl::visitAnd(BinaryOperator &I) {
25012501

25022502
if (I.getType()->isIntOrIntVectorTy(1)) {
25032503
if (auto *SI0 = dyn_cast<SelectInst>(Op0)) {
2504-
if (auto *I =
2504+
if (auto *R =
25052505
foldAndOrOfSelectUsingImpliedCond(Op1, *SI0, /* IsAnd */ true))
2506-
return I;
2506+
return R;
25072507
}
25082508
if (auto *SI1 = dyn_cast<SelectInst>(Op1)) {
2509-
if (auto *I =
2509+
if (auto *R =
25102510
foldAndOrOfSelectUsingImpliedCond(Op0, *SI1, /* IsAnd */ true))
2511-
return I;
2511+
return R;
25122512
}
25132513
}
25142514

@@ -3287,14 +3287,14 @@ Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) {
32873287
Type *Ty = I.getType();
32883288
if (Ty->isIntOrIntVectorTy(1)) {
32893289
if (auto *SI0 = dyn_cast<SelectInst>(Op0)) {
3290-
if (auto *I =
3290+
if (auto *R =
32913291
foldAndOrOfSelectUsingImpliedCond(Op1, *SI0, /* IsAnd */ false))
3292-
return I;
3292+
return R;
32933293
}
32943294
if (auto *SI1 = dyn_cast<SelectInst>(Op1)) {
3295-
if (auto *I =
3295+
if (auto *R =
32963296
foldAndOrOfSelectUsingImpliedCond(Op0, *SI1, /* IsAnd */ false))
3297-
return I;
3297+
return R;
32983298
}
32993299
}
33003300

0 commit comments

Comments
 (0)