[llvm] r344282 - [Pipeliner] Fix the Schedule DAG topoligical order.
Sumanth Gundapaneni via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 11 12:42:46 PDT 2018
Author: sgundapa
Date: Thu Oct 11 12:42:46 2018
New Revision: 344282
URL: http://llvm.org/viewvc/llvm-project?rev=344282&view=rev
Log:
[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
Modified:
llvm/trunk/lib/CodeGen/MachinePipeliner.cpp
Modified: llvm/trunk/lib/CodeGen/MachinePipeliner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachinePipeliner.cpp?rev=344282&r1=344281&r2=344282&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachinePipeliner.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachinePipeliner.cpp Thu Oct 11 12:42:46 2018
@@ -1295,6 +1295,7 @@ void SwingSchedulerDAG::changeDependence
// 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
More information about the llvm-commits
mailing list