diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-10 01:51:42 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-10 01:51:42 +0000 |
commit | 47dbf6cef761c25cfeb0aa7d624a6f98288bb96a (patch) | |
tree | 44f4f94894453c382c529d182ce7189764e1ab84 /lib/CodeGen/InlineSpiller.cpp | |
parent | 38f6bd0fc8095ef79a89b3db15ff6dc734ac90e7 (diff) | |
download | external_llvm-47dbf6cef761c25cfeb0aa7d624a6f98288bb96a.zip external_llvm-47dbf6cef761c25cfeb0aa7d624a6f98288bb96a.tar.gz external_llvm-47dbf6cef761c25cfeb0aa7d624a6f98288bb96a.tar.bz2 |
Change the Spiller interface to take a LiveRangeEdit reference.
This makes it possible to register delegates and get callbacks when the spiller
edits live ranges.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InlineSpiller.cpp')
-rw-r--r-- | lib/CodeGen/InlineSpiller.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/CodeGen/InlineSpiller.cpp b/lib/CodeGen/InlineSpiller.cpp index 871fbea..9f391e4 100644 --- a/lib/CodeGen/InlineSpiller.cpp +++ b/lib/CodeGen/InlineSpiller.cpp @@ -24,15 +24,11 @@ #include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetInstrInfo.h" -#include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; -static cl::opt<bool> -VerifySpills("verify-spills", cl::desc("Verify after each spill/split")); - namespace { class InlineSpiller : public Spiller { MachineFunctionPass &pass_; @@ -73,10 +69,6 @@ public: tri_(*mf.getTarget().getRegisterInfo()), reserved_(tri_.getReservedRegs(mf_)) {} - void spill(LiveInterval *li, - SmallVectorImpl<LiveInterval*> &newIntervals, - const SmallVectorImpl<LiveInterval*> *spillIs); - void spill(LiveRangeEdit &); private: @@ -96,8 +88,6 @@ namespace llvm { Spiller *createInlineSpiller(MachineFunctionPass &pass, MachineFunction &mf, VirtRegMap &vrm) { - if (VerifySpills) - mf.verify(&pass, "When creating inline spiller"); return new InlineSpiller(pass, mf, vrm); } } @@ -330,15 +320,6 @@ void InlineSpiller::insertSpill(LiveInterval &NewLI, NewLI.addRange(LiveRange(Idx, StoreIdx, StoreVNI)); } -void InlineSpiller::spill(LiveInterval *li, - SmallVectorImpl<LiveInterval*> &newIntervals, - const SmallVectorImpl<LiveInterval*> *spillIs) { - LiveRangeEdit edit(*li, newIntervals, 0, spillIs); - spill(edit); - if (VerifySpills) - mf_.verify(&pass_, "After inline spill"); -} - void InlineSpiller::spill(LiveRangeEdit &edit) { edit_ = &edit; assert(!TargetRegisterInfo::isStackSlot(edit.getReg()) |