diff options
author | Sumanth Gundapaneni <sgundapa@codeaurora.org> | 2018-10-11 19:42:46 +0000 |
---|---|---|
committer | Sumanth Gundapaneni <sgundapa@codeaurora.org> | 2018-10-11 19:42:46 +0000 |
commit | 8916e438c487e9a31b204345c3b62cebb3ea96fd (patch) | |
tree | ab54ffc102840205bdd9e921f5655b82e64cfc5e /llvm/lib/CodeGen/MachinePipeliner.cpp | |
parent | e1a353adb01433dbf5ae1fa23d5714059b9e9109 (diff) | |
download | bcm5719-llvm-8916e438c487e9a31b204345c3b62cebb3ea96fd.tar.gz bcm5719-llvm-8916e438c487e9a31b204345c3b62cebb3ea96fd.zip |
[Pipeliner] Fix the Schedule DAG topoligical order.
This patch updates the DAG change to reflect in the topological ordering
of the nodes.
Differential Revision: https://reviews.llvm.org/D53105
llvm-svn: 344282
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachinePipeliner.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp index 3d8510f7c0c..1109be15077 100644 --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -1295,6 +1295,7 @@ void SwingSchedulerDAG::changeDependences() { // Add a dependence between the new instruction and the instruction // that defines the new base. SDep Dep(&I, SDep::Anti, NewBase); + Topo.AddPred(LastSU, &I); LastSU->addPred(Dep); // Remember the base and offset information so that we can update the |