summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-02-22 06:08:11 +0000
committerAndrew Trick <atrick@apple.com>2012-02-22 06:08:11 +0000
commit46cc9a4aaa1c3c110ba7d925cbba402b769441a5 (patch)
tree7f51c4c531db9f7c9dd0b464ca6a8f469ec9db05 /llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
parent760b134ffa8bb88ccc96fc2230ab7e5fa501e921 (diff)
downloadbcm5719-llvm-46cc9a4aaa1c3c110ba7d925cbba402b769441a5.tar.gz
bcm5719-llvm-46cc9a4aaa1c3c110ba7d925cbba402b769441a5.zip
Initialize SUnits before DAG building.
Affect on SD scheduling and postRA scheduling: Printing the DAG will display the nodes in top-down topological order. This matches the order within the MBB and makes my life much easier in general. Affect on misched: We don't need to track virtual register uses at all. This is awesome. I also intend to rely on the SUnit ID as a topo-sort index. So if A < B then we cannot have an edge B -> A. llvm-svn: 151135
Diffstat (limited to 'llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp')
-rw-r--r--llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp b/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
index 5c325396dbe..0751229f4e0 100644
--- a/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
+++ b/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
@@ -427,6 +427,8 @@ BreakAntiDependencies(const std::vector<SUnit>& SUnits,
// Keep a map of the MachineInstr*'s back to the SUnit representing them.
// This is used for updating debug information.
+ //
+ // FIXME: Replace this with the existing map in ScheduleDAGInstrs::MISUnitMap
DenseMap<MachineInstr*,const SUnit*> MISUnitMap;
// Find the node at the bottom of the critical path.
OpenPOWER on IntegriCloud