[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:
Sumanth Gundapaneni 2018-10-11 19:42:46 +00:00
parent e1a353adb0
commit 8916e438c4
1 changed files with 1 additions and 0 deletions

View File

@ -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