aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/InlineSpiller.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2010-09-26 03:37:09 +0000
committerLang Hames <lhames@gmail.com>2010-09-26 03:37:09 +0000
commitcec2945f3092c4d087716eb96062d7c7ef6fe60c (patch)
treeb49566e95f0f1e30d989e324cf72d260af433a4d /lib/CodeGen/InlineSpiller.cpp
parenta6c1dbd541d93359a7dd8fbcba3d7f0bf77e60c5 (diff)
Fixed some tests to avoid LiveIntervals::getInstructionFromIndex(..) overhead where possible. Thanks to Jakob for the suggestions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InlineSpiller.cpp')
-rw-r--r--lib/CodeGen/InlineSpiller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/InlineSpiller.cpp b/lib/CodeGen/InlineSpiller.cpp
index 12f6d070aa..a79f7a892b 100644
--- a/lib/CodeGen/InlineSpiller.cpp
+++ b/lib/CodeGen/InlineSpiller.cpp
@@ -282,7 +282,7 @@ void InlineSpiller::reMaterializeAll() {
lis_.RemoveMachineInstrFromMaps(DefMI);
vrm_.RemoveMachineInstrFromMaps(DefMI);
DefMI->eraseFromParent();
- VNI->def = lis_.getZeroIndex();
+ VNI->def = SlotIndex();
anyRemoved = true;
}