diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-29 21:20:19 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-29 21:20:19 +0000 |
| commit | e991f728d6ebfe5165b0447e1cfa2d9eebb58c43 (patch) | |
| tree | 0f8f384fd2f1d7e3e65174c3a693e61a45ae2e65 /llvm/lib/CodeGen/LiveRangeEdit.h | |
| parent | 42d0a6c7705aa15d6848666cd0ef8df383cf09e6 (diff) | |
| download | bcm5719-llvm-e991f728d6ebfe5165b0447e1cfa2d9eebb58c43.tar.gz bcm5719-llvm-e991f728d6ebfe5165b0447e1cfa2d9eebb58c43.zip | |
Recompute register class and hint for registers created during spilling.
The spill weight is not recomputed for an unspillable register - it stays infinite.
llvm-svn: 128490
Diffstat (limited to 'llvm/lib/CodeGen/LiveRangeEdit.h')
| -rw-r--r-- | llvm/lib/CodeGen/LiveRangeEdit.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeEdit.h b/llvm/lib/CodeGen/LiveRangeEdit.h index 04eced6d79b..e02e0a872dc 100644 --- a/llvm/lib/CodeGen/LiveRangeEdit.h +++ b/llvm/lib/CodeGen/LiveRangeEdit.h @@ -25,6 +25,7 @@ namespace llvm { class AliasAnalysis; class LiveIntervals; +class MachineLoopInfo; class MachineRegisterInfo; class VirtRegMap; @@ -179,6 +180,10 @@ public: LiveIntervals&, VirtRegMap&, const TargetInstrInfo&); + /// calculateRegClassAndHint - Recompute register class and hint for each new + /// register. + void calculateRegClassAndHint(MachineFunction&, LiveIntervals&, + const MachineLoopInfo&); }; } |

