mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +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:
@@ -193,10 +193,10 @@ namespace {
|
||||
class StandardSpiller : public Spiller {
|
||||
protected:
|
||||
LiveIntervals *lis;
|
||||
const MachineLoopInfo *loopInfo;
|
||||
MachineLoopInfo *loopInfo;
|
||||
VirtRegMap *vrm;
|
||||
public:
|
||||
StandardSpiller(LiveIntervals *lis, const MachineLoopInfo *loopInfo,
|
||||
StandardSpiller(LiveIntervals *lis, MachineLoopInfo *loopInfo,
|
||||
VirtRegMap *vrm)
|
||||
: lis(lis), loopInfo(loopInfo), vrm(vrm) {}
|
||||
|
||||
@@ -222,7 +222,7 @@ namespace {
|
||||
class SplittingSpiller : public StandardSpiller {
|
||||
public:
|
||||
SplittingSpiller(MachineFunction *mf, LiveIntervals *lis,
|
||||
const MachineLoopInfo *loopInfo, VirtRegMap *vrm)
|
||||
MachineLoopInfo *loopInfo, VirtRegMap *vrm)
|
||||
: StandardSpiller(lis, loopInfo, vrm) {
|
||||
|
||||
mri = &mf->getRegInfo();
|
||||
@@ -508,12 +508,12 @@ private:
|
||||
namespace llvm {
|
||||
Spiller *createInlineSpiller(MachineFunction*,
|
||||
LiveIntervals*,
|
||||
const MachineLoopInfo*,
|
||||
MachineLoopInfo*,
|
||||
VirtRegMap*);
|
||||
}
|
||||
|
||||
llvm::Spiller* llvm::createSpiller(MachineFunction *mf, LiveIntervals *lis,
|
||||
const MachineLoopInfo *loopInfo,
|
||||
MachineLoopInfo *loopInfo,
|
||||
VirtRegMap *vrm) {
|
||||
switch (spillerOpt) {
|
||||
default: assert(0 && "unknown spiller");
|
||||
|
||||
Reference in New Issue
Block a user