diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-08 23:42:21 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-08 23:42:21 +0000 |
commit | 7466927b1af264b359c860cb9f7d1f3b275cc5cd (patch) | |
tree | c202d86800d760d377a81db5bf76de4299836844 /lib/CodeGen/SplitKit.h | |
parent | d82de8341c99c1756624020000bd51a03a5f355c (diff) | |
download | external_llvm-7466927b1af264b359c860cb9f7d1f3b275cc5cd.zip external_llvm-7466927b1af264b359c860cb9f7d1f3b275cc5cd.tar.gz external_llvm-7466927b1af264b359c860cb9f7d1f3b275cc5cd.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r-- | lib/CodeGen/SplitKit.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h index e76cbc6..dff3765 100644 --- a/lib/CodeGen/SplitKit.h +++ b/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 ---=== |