aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachinePipeliner.cpp
diff options
context:
space:
mode:
authorFraser Cormack <fraser@codeplay.com>2020-03-31 11:57:51 +0100
committerFraser Cormack <fraser@codeplay.com>2020-04-17 11:08:44 +0100
commitc819ef9653635b4a15c1390c28bfa4cdff614396 (patch)
tree4501b8b4d7d60940713b2cafaf76feedb7be3d2d /llvm/lib/CodeGen/MachinePipeliner.cpp
parentfa7f328a15536e9c7fa82608152632254277c787 (diff)
downloadllvm-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.cpp2
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;