From 08e93b14c37277ab40b835de340f89ba357d3332 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Tue, 10 Aug 2010 17:07:22 +0000 Subject: 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 --- include/llvm/CodeGen/CalcSpillWeights.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/llvm/CodeGen') 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 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. -- cgit v1.2.3