diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-08-10 17:07:22 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-08-10 17:07:22 +0000 |
commit | 08e93b14c37277ab40b835de340f89ba357d3332 (patch) | |
tree | 438fa9e4f4541291daa751832e65c002a96e27ac /include/llvm/CodeGen | |
parent | dc0830947a0787006cd4dc858ad163c39ecefc90 (diff) | |
download | llvm-08e93b14c37277ab40b835de340f89ba357d3332.tar.gz llvm-08e93b14c37277ab40b835de340f89ba357d3332.tar.bz2 llvm-08e93b14c37277ab40b835de340f89ba357d3332.tar.xz |
Recalculate the spill weight and allocation hint for virtual registers created
during live range splitting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/CalcSpillWeights.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/CalcSpillWeights.h b/include/llvm/CodeGen/CalcSpillWeights.h index 99703a1c10..a47d847739 100644 --- a/include/llvm/CodeGen/CalcSpillWeights.h +++ b/include/llvm/CodeGen/CalcSpillWeights.h @@ -25,11 +25,11 @@ namespace llvm { class VirtRegAuxInfo { MachineFunction &mf_; LiveIntervals &lis_; - MachineLoopInfo &loops_; + const MachineLoopInfo &loops_; DenseMap<unsigned, float> hint_; public: VirtRegAuxInfo(MachineFunction &mf, LiveIntervals &lis, - MachineLoopInfo &loops) : + const MachineLoopInfo &loops) : mf_(mf), lis_(lis), loops_(loops) {} /// CalculateRegClass - recompute the register class for li from its uses. |