[PATCH] D159325: [InstCombine] Rename some shadow variables; NFC
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 13 12:54:01 PDT 2023
goldstein.w.n updated this revision to Diff 556696.
goldstein.w.n added a comment.
Rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159325/new/
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
@@ -2501,14 +2501,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;
}
}
@@ -3287,14 +3287,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.556696.patch
Type: text/x-patch
Size: 1289 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230913/f22a4e63/attachment.bin>
More information about the llvm-commits
mailing list