From 6a3dbd3b25bbc99bd1a233d6a74ddea3493ba6ac Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Thu, 17 Mar 2011 20:37:07 +0000 Subject: Dead code elimination may separate the live interval into multiple connected components. I have convinced myself that it can only happen when a phi value dies. When it happens, allocate new virtual registers for the components. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127827 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/InlineSpiller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/InlineSpiller.cpp') diff --git a/lib/CodeGen/InlineSpiller.cpp b/lib/CodeGen/InlineSpiller.cpp index ff0a1051e7..ecb0088183 100644 --- a/lib/CodeGen/InlineSpiller.cpp +++ b/lib/CodeGen/InlineSpiller.cpp @@ -460,7 +460,7 @@ bool InlineSpiller::reMaterializeFor(MachineBasicBlock::iterator MI) { } // Alocate a new register for the remat. - LiveInterval &NewLI = Edit->create(MRI, LIS, VRM); + LiveInterval &NewLI = Edit->create(LIS, VRM); NewLI.markNotSpillable(); // Rematting for a copy: Set allocation hint to be the destination register. @@ -685,7 +685,7 @@ void InlineSpiller::spillAroundUses(unsigned Reg) { // Allocate interval around instruction. // FIXME: Infer regclass from instruction alone. - LiveInterval &NewLI = Edit->create(MRI, LIS, VRM); + LiveInterval &NewLI = Edit->create(LIS, VRM); NewLI.markNotSpillable(); if (Reads) -- cgit v1.2.3-18-g5258