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

Unified Diff: src/IceTargetLowering.h

Issue 580903005: Subzero: Add branch optimization. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes 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
« no previous file with comments | « src/IceInstX8632.def ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLowering.h
diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h
index b15c4f1e5f157e3d4045540ce6662a345f47ef44..7383fff4811906c63dd57651254d22bb36235f30 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -125,6 +125,11 @@ public:
void doNopInsertion();
// Lowers a single instruction.
void lower();
+ // Tries to do branch optimization on a single instruction. Returns
+ // true if some optimization was done.
+ virtual bool doBranchOpt(Inst * /*I*/, const CfgNode * /*NextNode*/) {
+ return false;
+ }
// Returns a variable pre-colored to the specified physical
// register. This is generally used to get very direct access to
« no previous file with comments | « src/IceInstX8632.def ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698