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

Unified Diff: src/IceTargetLowering.h

Issue 1385433002: Subzero: Use register availability during lowering to improve the code. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add comments Created 5 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/IceRegAlloc.cpp ('k') | src/IceTargetLowering.cpp » ('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 0095a39d53f4625024960c84405d96e955ae4898..f35983f1846e6bf9ed43ff05a238bb470cbfd241 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -65,6 +65,9 @@ public:
void setNext(InstList::iterator N) { Next = N; }
void rewind();
void setInsertPoint(const InstList::iterator &Position) { Next = Position; }
+ void availabilityReset();
+ void availabilityUpdate();
+ Variable *availabilityGet(Operand *Src) const;
private:
/// Node is the argument to Inst::updateVars().
@@ -85,6 +88,11 @@ private:
InstList::iterator Begin;
/// End is a copy of Insts.end(), used if Next needs to be advanced.
InstList::iterator End;
+ /// LastDest and LastSrc capture the parameters of the last "Dest=Src" simple
+ /// assignment inserted (provided Src is a variable). This is used for simple
+ /// availability analysis.
+ Variable *LastDest = nullptr;
+ Variable *LastSrc = nullptr;
void skipDeleted(InstList::iterator &I) const;
void advanceForward(InstList::iterator &I) const;
« no previous file with comments | « src/IceRegAlloc.cpp ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698