diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-18 22:35:20 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-18 22:35:20 +0000 |
commit | e324f6e05ff7a157347edb48203db0250805f748 (patch) | |
tree | c8bd989c58f7753f1969bfcbd95b9c32113b1e5d /lib/CodeGen/LiveRangeEdit.h | |
parent | 188a7e00e784f78d6b5b250a64ac5c374f0fd3f0 (diff) | |
download | external_llvm-e324f6e05ff7a157347edb48203db0250805f748.tar.gz external_llvm-e324f6e05ff7a157347edb48203db0250805f748.tar.bz2 external_llvm-e324f6e05ff7a157347edb48203db0250805f748.zip |
Use VirtRegMap's Virt2SplitMap to keep track of the original live range before splitting.
All new virtual registers created for spilling or splitting point back to their original.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveRangeEdit.h')
-rw-r--r-- | lib/CodeGen/LiveRangeEdit.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveRangeEdit.h b/lib/CodeGen/LiveRangeEdit.h index 73f69ed639..832a12db4f 100644 --- a/lib/CodeGen/LiveRangeEdit.h +++ b/lib/CodeGen/LiveRangeEdit.h @@ -73,6 +73,10 @@ public: LiveInterval &getParent() const { return parent_; } unsigned getReg() const { return parent_.reg; } + /// getOriginal - Return the original virtual register that parent descends + /// from through splitting. The original was not created by splitting. + unsigned getOriginal(const VirtRegMap&) const; + /// Iterator for accessing the new registers added by this edit. typedef SmallVectorImpl<LiveInterval*>::const_iterator iterator; iterator begin() const { return newRegs_.begin()+firstNew_; } |