diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-26 22:16:41 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-26 22:16:41 +0000 |
| commit | e4663456752ff6160c0817afb732b83b7ef62cc2 (patch) | |
| tree | a06692ce233c436d63570c6904e4453a11b236b3 /llvm/lib/CodeGen/LiveRangeEdit.h | |
| parent | 382600ff9773d6fcc65114d543b388b3f9daff12 (diff) | |
| download | bcm5719-llvm-e4663456752ff6160c0817afb732b83b7ef62cc2.tar.gz bcm5719-llvm-e4663456752ff6160c0817afb732b83b7ef62cc2.zip | |
Use individual register classes when spilling snippets.
The main register class may have been inflated by live range splitting, so that
register class is not necessarily valid for the snippet instructions.
Use the original register class for the stack slot interval.
llvm-svn: 128351
Diffstat (limited to 'llvm/lib/CodeGen/LiveRangeEdit.h')
| -rw-r--r-- | llvm/lib/CodeGen/LiveRangeEdit.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeEdit.h b/llvm/lib/CodeGen/LiveRangeEdit.h index 0846961f5b9..0e03137c862 100644 --- a/llvm/lib/CodeGen/LiveRangeEdit.h +++ b/llvm/lib/CodeGen/LiveRangeEdit.h @@ -65,9 +65,6 @@ private: /// live range trimmed or entirely removed. SmallPtrSet<const VNInfo*,4> rematted_; - /// createFrom - Create a new virtual register based on OldReg. - LiveInterval &createFrom(unsigned, LiveIntervals&, VirtRegMap &); - /// scanRemattable - Identify the parent_ values that may rematerialize. void scanRemattable(LiveIntervals &lis, const TargetInstrInfo &tii, @@ -113,6 +110,9 @@ public: return uselessRegs_; } + /// createFrom - Create a new virtual register based on OldReg. + LiveInterval &createFrom(unsigned OldReg, LiveIntervals&, VirtRegMap&); + /// create - Create a new register with the same class and original slot as /// parent. LiveInterval &create(LiveIntervals &LIS, VirtRegMap &VRM) { |

