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

Unified Diff: src/IceInst.h

Issue 2177033002: Subzero: Local variable splitting. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes, mostly renaming. Created 4 years, 5 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/IceClFlags.def ('k') | src/IceInst.cpp » ('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..2f35b52219326757a24a2b0cb3ecd1f9d181a207 100644
--- a/src/IceInst.h
+++ b/src/IceInst.h
@@ -111,8 +111,6 @@ public:
void replaceSource(SizeT Index, Operand *Replacement) {
assert(Index < getSrcSize());
assert(!isDeleted());
- assert(LiveRangesEnded == 0);
- // Invalidates liveness info because the use Srcs[Index] is removed.
Srcs[Index] = Replacement;
}
@@ -151,6 +149,15 @@ public:
/// report_fatal_error().
virtual bool isMemoryWrite() const;
+ /// Returns true if the (target-specific) instruction represents an
+ /// intra-block label, i.e. branch target. This is meant primarily for
+ /// Cfg::splitLocalVars().
+ virtual bool isLabel() const { return false; }
+ /// If the (target-specific) instruction represents an intra-block branch to
+ /// some Label instruction, return that Label branch target instruction;
+ /// otherwise return nullptr.
+ virtual const Inst *getIntraBlockBranchTarget() const { return nullptr; }
+
void livenessLightweight(Cfg *Func, LivenessBV &Live);
/// Calculates liveness for this instruction. Returns true if this instruction
/// is (tentatively) still live and should be retained, and false if this
« no previous file with comments | « src/IceClFlags.def ('k') | src/IceInst.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698