summaryrefslogtreecommitdiff
path: root/lib/CodeGen/Spiller.h
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2009-12-09 05:39:12 +0000
committerLang Hames <lhames@gmail.com>2009-12-09 05:39:12 +0000
commit6194569d22003fddaf1a33acdbb84d5efe76e7d7 (patch)
tree774665726e58a7ee539ab6188a4feb277c374cdf /lib/CodeGen/Spiller.h
parent164c7ba0ef6a7db1b2d58f959e879ddcdf276ad5 (diff)
downloadllvm-6194569d22003fddaf1a33acdbb84d5efe76e7d7.tar.gz
llvm-6194569d22003fddaf1a33acdbb84d5efe76e7d7.tar.bz2
llvm-6194569d22003fddaf1a33acdbb84d5efe76e7d7.tar.xz
Added a new "splitting" spiller.
When a call is placed to spill an interval this spiller will first try to break the interval up into its component values. Single value intervals and intervals which have already been split (or are the result of previous splits) are spilled by the default spiller. Splitting intervals as described above may improve the performance of generated code in some circumstances. This work is experimental however, and it still miscompiles many benchmarks. It's not recommended for general use yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90951 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Spiller.h')
-rw-r--r--lib/CodeGen/Spiller.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/Spiller.h b/lib/CodeGen/Spiller.h
index c6bd9857db..dda52e871f 100644
--- a/lib/CodeGen/Spiller.h
+++ b/lib/CodeGen/Spiller.h
@@ -21,6 +21,7 @@ namespace llvm {
class MachineFunction;
class MachineInstr;
class MachineLoopInfo;
+ class SlotIndex;
class VirtRegMap;
class VNInfo;
@@ -35,7 +36,8 @@ namespace llvm {
/// Spill the given live range. The method used will depend on the Spiller
/// implementation selected.
virtual std::vector<LiveInterval*> spill(LiveInterval *li,
- SmallVectorImpl<LiveInterval*> &spillIs) = 0;
+ SmallVectorImpl<LiveInterval*> &spillIs,
+ SlotIndex *earliestIndex = 0) = 0;
};