mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Spillers may alter MachineLoopInfo when breaking critical edges, so make it
non-const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108734 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -127,7 +127,7 @@ namespace {
|
||||
BitVector allocatableRegs_;
|
||||
LiveIntervals* li_;
|
||||
LiveStacks* ls_;
|
||||
const MachineLoopInfo *loopInfo;
|
||||
MachineLoopInfo *loopInfo;
|
||||
|
||||
/// handled_ - Intervals are added to the handled_ set in the order of their
|
||||
/// start value. This is uses for backtracking.
|
||||
@ -799,7 +799,7 @@ static void addStackInterval(LiveInterval *cur, LiveStacks *ls_,
|
||||
static
|
||||
float getConflictWeight(LiveInterval *cur, unsigned Reg, LiveIntervals *li_,
|
||||
MachineRegisterInfo *mri_,
|
||||
const MachineLoopInfo *loopInfo) {
|
||||
MachineLoopInfo *loopInfo) {
|
||||
float Conflicts = 0;
|
||||
for (MachineRegisterInfo::reg_iterator I = mri_->reg_begin(Reg),
|
||||
E = mri_->reg_end(); I != E; ++I) {
|
||||
|
Reference in New Issue
Block a user