projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3b8629
)
MachineScheduler: enable biasCriticalPath for all DAGs.
author
Andrew Trick
<atrick@apple.com>
Thu, 24 Jan 2013 02:09:57 +0000
(
02:09
+0000)
committer
Andrew Trick
<atrick@apple.com>
Thu, 24 Jan 2013 02:09:57 +0000
(
02:09
+0000)
llvm-svn: 173318
llvm/lib/CodeGen/MachineScheduler.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/MachineScheduler.cpp
b/llvm/lib/CodeGen/MachineScheduler.cpp
index
c949266
..
b9198e8
100644
(file)
--- a/
llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/
llvm/lib/CodeGen/MachineScheduler.cpp
@@
-563,6
+563,10
@@
void ScheduleDAGMI::releaseRoots() {
for (std::vector<SUnit>::iterator
I = SUnits.begin(), E = SUnits.end(); I != E; ++I) {
SUnit *SU = &(*I);
+
+ // Order predecessors so DFSResult follows the critical path.
+ SU->biasCriticalPath();
+
// A SUnit is ready to top schedule if it has no predecessors.
if (!I->NumPredsLeft && SU != &EntrySU)
SchedImpl->releaseTopNode(SU);