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

Unified Diff: src/IceInst.h

Issue 2172313002: Subzero : Live Range Splitting after initial Register Allocation (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add comment Created 4 years, 4 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/IceDefs.h ('k') | src/IceOperand.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInst.h
diff --git a/src/IceInst.h b/src/IceInst.h
index b8e1b6184ef311edae17c58f52782e95b5277175..8db652b32dc3f42663927ba64644a6f1e2f22b57 100644
--- a/src/IceInst.h
+++ b/src/IceInst.h
@@ -111,7 +111,7 @@ public:
void replaceSource(SizeT Index, Operand *Replacement) {
assert(Index < getSrcSize());
assert(!isDeleted());
- assert(LiveRangesEnded == 0);
+ // assert(LiveRangesEnded == 0);
// Invalidates liveness info because the use Srcs[Index] is removed.
Srcs[Index] = Replacement;
}
@@ -184,6 +184,7 @@ public:
virtual bool isRedundantAssign() const { return false; }
virtual ~Inst() = default;
+ void replaceDest(Variable *Var) { Dest = Var; }
protected:
Inst(Cfg *Func, InstKind Kind, SizeT MaxSrcs, Variable *Dest);
« no previous file with comments | « src/IceDefs.h ('k') | src/IceOperand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698