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 | 4d6eafa138730e6fde5b6cccb3e37f89e5913a5c (patch) | |
| tree | d84e5014b07728054d71016f43ea14d1eb6e7074 /llvm/lib/CodeGen/InlineSpiller.cpp | |
| parent | c6cc4850515bb3b430838a1a238827eea827a1bb (diff) | |
| download | llvm-4d6eafa138730e6fde5b6cccb3e37f89e5913a5c.zip llvm-4d6eafa138730e6fde5b6cccb3e37f89e5913a5c.tar.gz llvm-4d6eafa138730e6fde5b6cccb3e37f89e5913a5c.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.
llvm-svn: 127389
Diffstat (limited to 'llvm/lib/CodeGen/InlineSpiller.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/InlineSpiller.cpp | 19 | 
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp index 871fbea..9f391e4 100644 --- a/llvm/lib/CodeGen/InlineSpiller.cpp +++ b/llvm/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())  | 
