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

Unified Diff: src/IceTargetLowering.cpp

Issue 680733002: Subzero: Allow delaying Phi lowering until after register allocation. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix vector const undef lowering for phis. Created 6 years, 2 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/IceTargetLowering.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLowering.cpp
diff --git a/src/IceTargetLowering.cpp b/src/IceTargetLowering.cpp
index b18999f67ebb6e7013bd5cf3153bf4121f79e938..350605bb4758298a62a85b6c198ee0768110a140 100644
--- a/src/IceTargetLowering.cpp
+++ b/src/IceTargetLowering.cpp
@@ -44,12 +44,16 @@ cl::opt<int> NopProbabilityAsPercentage(
void LoweringContext::init(CfgNode *N) {
Node = N;
+ End = getNode()->getInsts().end();
+ rewind();
+ advanceForward(Next);
+}
+
+void LoweringContext::rewind() {
Begin = getNode()->getInsts().begin();
Cur = Begin;
- End = getNode()->getInsts().end();
skipDeleted(Cur);
Next = Cur;
- advanceForward(Next);
}
void LoweringContext::insert(Inst *Inst) {
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698