forked from OSchip/llvm-project
[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
This commit is contained in:
parent
e1a353adb0
commit
8916e438c4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue