summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-08 23:42:21 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-08 23:42:21 +0000
commit959fcc6c634cb4d4fd8bd8c8b4bc3e6b99ebc228 (patch)
treee505c66502e1bf6c63f580e91fe46a8c7d8072f1 /llvm/lib/CodeGen/SplitKit.h
parent5eee9f7d300312369d0e7f862eae49a7bb1d2c11 (diff)
downloadbcm5719-llvm-959fcc6c634cb4d4fd8bd8c8b4bc3e6b99ebc228.tar.gz
bcm5719-llvm-959fcc6c634cb4d4fd8bd8c8b4bc3e6b99ebc228.zip
Rename SplitEditor::rewrite to finish() and break it out into a couple of new
functions: computeRemainder and rewrite. When the remainder breaks up into multiple components, remember to rewrite those uses as well. llvm-svn: 116121
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.h')
-rw-r--r--llvm/lib/CodeGen/SplitKit.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.h b/llvm/lib/CodeGen/SplitKit.h
index e76cbc6ce3e..dff3765ec38 100644
--- a/llvm/lib/CodeGen/SplitKit.h
+++ b/llvm/lib/CodeGen/SplitKit.h
@@ -229,7 +229,7 @@ public:
/// - Mark the ranges where the new interval is used with useIntv*
/// - Mark the places where the interval is exited with exitIntv*.
/// - Finish the current interval with closeIntv and repeat from 2.
-/// - Rewrite instructions with rewrite().
+/// - Rewrite instructions with finish().
///
class SplitEditor {
SplitAnalysis &sa_;
@@ -271,6 +271,13 @@ class SplitEditor {
/// truncating any overlap with intervals_.
void addTruncSimpleRange(SlotIndex Start, SlotIndex End, VNInfo *VNI);
+ /// computeRemainder - Compute the dupli liveness as the complement of all the
+ /// new intervals.
+ void computeRemainder();
+
+ /// rewrite - Rewrite all uses of reg to use the new registers.
+ void rewrite(unsigned reg);
+
public:
/// Create a new SplitEditor for editing the LiveInterval analyzed by SA.
/// Newly created intervals will be appended to newIntervals.
@@ -307,9 +314,9 @@ public:
/// LiveInterval, and ranges can be trimmed.
void closeIntv();
- /// rewrite - after all the new live ranges have been created, rewrite
- /// instructions using curli to use the new intervals.
- void rewrite();
+ /// finish - after all the new live ranges have been created, compute the
+ /// remaining live range, and rewrite instructions to use the new registers.
+ void finish();
// ===--- High level methods ---===
OpenPOWER on IntegriCloud