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 |