diff options
author | Vitaly Buka <vitalybuka@google.com> | 2020-07-31 02:09:54 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2020-07-31 02:10:03 -0700 |
commit | b0eb40ca3998c73b7e24b02e89ab3581f2daf647 (patch) | |
tree | bfef3249a1f551dfb755af1fad36fb0b4157fd4c /llvm/lib/CodeGen/MachinePipeliner.cpp | |
parent | 4d6eec8e70fbf4f68fbaab5a5f80f28ddaaf586f (diff) | |
download | llvm-b0eb40ca3998c73b7e24b02e89ab3581f2daf647.zip llvm-b0eb40ca3998c73b7e24b02e89ab3581f2daf647.tar.gz llvm-b0eb40ca3998c73b7e24b02e89ab3581f2daf647.tar.bz2 |
[NFC] Remove unused GetUnderlyingObject paramenter
Depends on D84617.
Differential Revision: https://reviews.llvm.org/D84621
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachinePipeliner.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp index 908f4e4..45a5ef7 100644 --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -705,14 +705,13 @@ static bool isDependenceBarrier(MachineInstr &MI, AliasAnalysis *AA) { /// This function calls the code in ValueTracking, but first checks that the /// instruction has a memory operand. static void getUnderlyingObjects(const MachineInstr *MI, - SmallVectorImpl<const Value *> &Objs, - const DataLayout &DL) { + SmallVectorImpl<const Value *> &Objs) { if (!MI->hasOneMemOperand()) return; MachineMemOperand *MM = *MI->memoperands_begin(); if (!MM->getValue()) return; - getUnderlyingObjects(MM->getValue(), Objs, DL); + getUnderlyingObjects(MM->getValue(), Objs); for (const Value *V : Objs) { if (!isIdentifiedObject(V)) { Objs.clear(); @@ -736,7 +735,7 @@ void SwingSchedulerDAG::addLoopCarriedDependences(AliasAnalysis *AA) { PendingLoads.clear(); else if (MI.mayLoad()) { SmallVector<const Value *, 4> Objs; - ::getUnderlyingObjects(&MI, Objs, MF.getDataLayout()); + ::getUnderlyingObjects(&MI, Objs); if (Objs.empty()) Objs.push_back(UnknownValue); for (auto V : Objs) { @@ -745,7 +744,7 @@ void SwingSchedulerDAG::addLoopCarriedDependences(AliasAnalysis *AA) { } } else if (MI.mayStore()) { SmallVector<const Value *, 4> Objs; - ::getUnderlyingObjects(&MI, Objs, MF.getDataLayout()); + ::getUnderlyingObjects(&MI, Objs); if (Objs.empty()) Objs.push_back(UnknownValue); for (auto V : Objs) { |