mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[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
This commit is contained in:
parent
a4aab3962c
commit
7036456dcc
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user