[PATCH] D103706: [NFC] Remove redundant variable
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 4 10:58:49 PDT 2021
aeubanks created this revision.
Herald added subscribers: kbarton, hiraditya, nemanjai.
aeubanks 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/D103706
Files:
llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
Index: llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
===================================================================
--- llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
+++ llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
@@ -337,21 +337,16 @@
for (const auto &BB : L->blocks())
for (auto &J : *BB) {
Value *PtrValue;
- Instruction *MemI;
if (LoadInst *LMemI = dyn_cast<LoadInst>(&J)) {
- MemI = LMemI;
PtrValue = LMemI->getPointerOperand();
} else if (StoreInst *SMemI = dyn_cast<StoreInst>(&J)) {
- MemI = SMemI;
PtrValue = SMemI->getPointerOperand();
} else if (IntrinsicInst *IMemI = dyn_cast<IntrinsicInst>(&J)) {
if (IMemI->getIntrinsicID() == Intrinsic::prefetch ||
IMemI->getIntrinsicID() == Intrinsic::ppc_vsx_lxvp) {
- MemI = IMemI;
PtrValue = IMemI->getArgOperand(0);
} else if (IMemI->getIntrinsicID() == Intrinsic::ppc_vsx_stxvp) {
- MemI = IMemI;
PtrValue = IMemI->getArgOperand(1);
} else continue;
} else continue;
@@ -369,7 +364,7 @@
continue;
if (isValidCandidate(&J, PtrValue))
- addOneCandidate(MemI, LSCEV, Buckets, MaxCandidateNum);
+ addOneCandidate(&J, LSCEV, Buckets, MaxCandidateNum);
}
return Buckets;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103706.349922.patch
Type: text/x-patch
Size: 1342 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210604/45daf1e6/attachment.bin>
More information about the llvm-commits
mailing list