Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: src/IceCfgNode.cpp

Issue 580903005: Subzero: Add branch optimization. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Avoid the !! operator Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceCfgNode.cpp
diff --git a/src/IceCfgNode.cpp b/src/IceCfgNode.cpp
index 4de2f577db3c4cbaedbf0939947b8d20fb08e3e1..3935aec1f7f791beff5450ca68ad65f7625796fc 100644
--- a/src/IceCfgNode.cpp
+++ b/src/IceCfgNode.cpp
@@ -457,6 +457,14 @@ void CfgNode::livenessPostprocess(LivenessMode Mode, Liveness *Liveness) {
}
}
+void CfgNode::doBranchOpt(const CfgNode *NextNode) {
+ TargetLowering *Target = Func->getTarget();
+ for (InstList::const_iterator I = Insts.begin(), E = Insts.end(); I != E;
+ ++I) {
+ Target->doBranchOpt(*I, NextNode);
jvoung (off chromium) 2014/09/18 03:56:02 I wonder if it makes sense to search backward and
Jim Stichnoth 2014/09/18 11:45:51 I thought about this a bit, but I think that would
+ }
+}
+
// ======================== Dump routines ======================== //
void CfgNode::emit(Cfg *Func) const {
« no previous file with comments | « src/IceCfgNode.h ('k') | src/IceGlobalContext.h » ('j') | src/IceTargetLoweringX8632.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698