[PATCH] D53105: [Pipeliner] Fix the Schedule DAG topoligical order.

Sumanth Gundapaneni via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 10 12:43:32 PDT 2018


sgundapa created this revision.
sgundapa added a reviewer: bcahoon.
Herald added a subscriber: llvm-commits.

This patch updates the DAG change to reflect in the topological ordering
of the nodes.


Repository:
  rL LLVM

https://reviews.llvm.org/D53105

Files:
  lib/CodeGen/MachinePipeliner.cpp


Index: lib/CodeGen/MachinePipeliner.cpp
===================================================================
--- lib/CodeGen/MachinePipeliner.cpp
+++ lib/CodeGen/MachinePipeliner.cpp
@@ -1295,6 +1295,7 @@
     // 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53105.169075.patch
Type: text/x-patch
Size: 487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181010/16f2bb54/attachment.bin>


More information about the llvm-commits mailing list