From 38f6bd0fc8095ef79a89b3db15ff6dc734ac90e7 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Thu, 10 Mar 2011 01:21:58 +0000 Subject: 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 --- lib/CodeGen/InlineSpiller.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/CodeGen/InlineSpiller.cpp') 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 &newIntervals, - const SmallVectorImpl &spillIs); + const SmallVectorImpl *spillIs); void spill(LiveRangeEdit &); @@ -332,8 +332,8 @@ void InlineSpiller::insertSpill(LiveInterval &NewLI, void InlineSpiller::spill(LiveInterval *li, SmallVectorImpl &newIntervals, - const SmallVectorImpl &spillIs) { - LiveRangeEdit edit(*li, newIntervals, 0, &spillIs); + const SmallVectorImpl *spillIs) { + LiveRangeEdit edit(*li, newIntervals, 0, spillIs); spill(edit); if (VerifySpills) mf_.verify(&pass_, "After inline spill"); -- cgit v1.2.3-70-g09d2