[PATCH] D159325: [InstCombine] Rename some shadow variables; NFC
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 31 18:28:47 PDT 2023
goldstein.w.n created this revision.
goldstein.w.n added a reviewer: nikic.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
goldstein.w.n requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D159325
Files:
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
Index: llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
===================================================================
--- llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -2479,14 +2479,14 @@
if (I.getType()->isIntOrIntVectorTy(1)) {
if (auto *SI0 = dyn_cast<SelectInst>(Op0)) {
- if (auto *I =
+ if (auto *R =
foldAndOrOfSelectUsingImpliedCond(Op1, *SI0, /* IsAnd */ true))
- return I;
+ return R;
}
if (auto *SI1 = dyn_cast<SelectInst>(Op1)) {
- if (auto *I =
+ if (auto *R =
foldAndOrOfSelectUsingImpliedCond(Op0, *SI1, /* IsAnd */ true))
- return I;
+ return R;
}
}
@@ -3272,14 +3272,14 @@
Type *Ty = I.getType();
if (Ty->isIntOrIntVectorTy(1)) {
if (auto *SI0 = dyn_cast<SelectInst>(Op0)) {
- if (auto *I =
+ if (auto *R =
foldAndOrOfSelectUsingImpliedCond(Op1, *SI0, /* IsAnd */ false))
- return I;
+ return R;
}
if (auto *SI1 = dyn_cast<SelectInst>(Op1)) {
- if (auto *I =
+ if (auto *R =
foldAndOrOfSelectUsingImpliedCond(Op0, *SI1, /* IsAnd */ false))
- return I;
+ return R;
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159325.555221.patch
Type: text/x-patch
Size: 1289 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230901/6d1e30c2/attachment.bin>
More information about the llvm-commits
mailing list