diff options
author | Sam Parker <sam.parker@arm.com> | 2019-07-29 08:07:23 +0000 |
---|---|---|
committer | Sam Parker <sam.parker@arm.com> | 2019-07-29 08:07:23 +0000 |
commit | 11ad33ede65a2736a49e362a149ef80fd118eb8a (patch) | |
tree | 34084da7c68b69623378afc9598ce9c0bf997908 | |
parent | aef03e86c1c6cadbbb2e7fdd1a2947f7e7cc5961 (diff) | |
download | bcm5719-llvm-11ad33ede65a2736a49e362a149ef80fd118eb8a.tar.gz bcm5719-llvm-11ad33ede65a2736a49e362a149ef80fd118eb8a.zip |
[NFC][ARM][ParallelDSP] Remove PopulateLoads
We no longer have to check what loads are used, all this
is performed at the start of the transform, so it's not
doing anything now.
llvm-svn: 367204
-rw-r--r-- | llvm/lib/Target/ARM/ARMParallelDSP.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Target/ARM/ARMParallelDSP.cpp b/llvm/lib/Target/ARM/ARMParallelDSP.cpp index 0e48ba4c7a4..7b357193f71 100644 --- a/llvm/lib/Target/ARM/ARMParallelDSP.cpp +++ b/llvm/lib/Target/ARM/ARMParallelDSP.cpp @@ -64,7 +64,6 @@ namespace { struct BinOpChain { Instruction *Root; ValueList AllValues; - MemInstList Loads; MemInstList VecLd; // List of all load instructions. ValueList LHS; // List of all (narrow) left hand operands. ValueList RHS; // List of all (narrow) right hand operands. @@ -79,13 +78,6 @@ namespace { AllValues.push_back(V); } - void PopulateLoads() { - for (auto *V : AllValues) { - if (auto *Ld = dyn_cast<LoadInst>(V)) - Loads.push_back(Ld); - } - } - unsigned size() const { return AllValues.size(); } bool AreSymmetrical(BinOpChain *Other); @@ -563,7 +555,6 @@ bool ARMParallelDSP::CreateParallelPairs(Reduction &R) { LLVM_DEBUG(dbgs() << "Operand list too short.\n"); return false; } - MulChain->PopulateLoads(); ValueList &LHS = static_cast<BinOpChain*>(MulChain.get())->LHS; ValueList &RHS = static_cast<BinOpChain*>(MulChain.get())->RHS; |