Index: src/IceCfg.cpp |
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp |
index d699ef50bf7a207eb17729070c99fc16286d36d4..44393230daf345055f2853f0c465ef58ebb9be81 100644 |
--- a/src/IceCfg.cpp |
+++ b/src/IceCfg.cpp |
@@ -290,6 +290,14 @@ bool Cfg::validateLiveness() const { |
return Valid; |
} |
+void Cfg::doBranchOpt() { |
+ for (NodeList::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) { |
+ NodeList::iterator NextNode = I; |
+ ++NextNode; |
+ (*I)->doBranchOpt(*NextNode); |
+ } |
+} |
+ |
// ======================== Dump routines ======================== // |
void Cfg::emit() { |