diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-10 01:21:58 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-10 01:21:58 +0000 |
commit | 38f6bd0fc8095ef79a89b3db15ff6dc734ac90e7 (patch) | |
tree | efa693ceeb60b477df8d2442372b45a2e99f5edd /lib/CodeGen/InlineSpiller.cpp | |
parent | 581d535af91dd55326250986273eabb495e55119 (diff) |
Make SpillIs an optional pointer. Avoid creating a bunch of temporary SmallVectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InlineSpiller.cpp')
-rw-r--r-- | lib/CodeGen/InlineSpiller.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/InlineSpiller.cpp b/lib/CodeGen/InlineSpiller.cpp index ec15050fa0..871fbeacf8 100644 --- a/lib/CodeGen/InlineSpiller.cpp +++ b/lib/CodeGen/InlineSpiller.cpp @@ -75,7 +75,7 @@ public: void spill(LiveInterval *li, SmallVectorImpl<LiveInterval*> &newIntervals, - const SmallVectorImpl<LiveInterval*> &spillIs); + const SmallVectorImpl<LiveInterval*> *spillIs); void spill(LiveRangeEdit &); @@ -332,8 +332,8 @@ void InlineSpiller::insertSpill(LiveInterval &NewLI, void InlineSpiller::spill(LiveInterval *li, SmallVectorImpl<LiveInterval*> &newIntervals, - const SmallVectorImpl<LiveInterval*> &spillIs) { - LiveRangeEdit edit(*li, newIntervals, 0, &spillIs); + const SmallVectorImpl<LiveInterval*> *spillIs) { + LiveRangeEdit edit(*li, newIntervals, 0, spillIs); spill(edit); if (VerifySpills) mf_.verify(&pass_, "After inline spill"); |