diff options
author | Fraser Cormack <fraser@codeplay.com> | 2020-03-31 11:57:51 +0100 |
---|---|---|
committer | Fraser Cormack <fraser@codeplay.com> | 2020-04-17 11:08:44 +0100 |
commit | c819ef9653635b4a15c1390c28bfa4cdff614396 (patch) | |
tree | 4501b8b4d7d60940713b2cafaf76feedb7be3d2d /llvm/lib/CodeGen/MachinePipeliner.cpp | |
parent | fa7f328a15536e9c7fa82608152632254277c787 (diff) | |
download | llvm-c819ef9653635b4a15c1390c28bfa4cdff614396.zip llvm-c819ef9653635b4a15c1390c28bfa4cdff614396.tar.gz llvm-c819ef9653635b4a15c1390c28bfa4cdff614396.tar.bz2 |
Provide operand indices to adjustSchedDependency
This allows targets to know exactly which operands are contributing to
the dependency, which is required for targets with per-operand
scheduling models.
Differential Revision: https://reviews.llvm.org/D77135
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachinePipeliner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp index efb4405..3465aaa 100644 --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -809,7 +809,7 @@ void SwingSchedulerDAG::updatePhiDependences() { if (!MI->isPHI()) { SDep Dep(SU, SDep::Data, Reg); Dep.setLatency(0); - ST.adjustSchedDependency(SU, &I, Dep); + ST.adjustSchedDependency(SU, 0, &I, MI->getOperandNo(MOI), Dep); I.addPred(Dep); } else { HasPhiUse = Reg; |