From 34138079138535e706e15e7d4e9b6294fe05a0b1 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Thu, 9 Dec 2010 21:20:46 +0000 Subject: Remember to filter out reserved rergisters from the allocation order. llvm-svn: 121411 --- llvm/lib/CodeGen/RegAllocGreedy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/RegAllocGreedy.cpp') diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index eae4cccb549..3c166bac4b4 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -165,7 +165,7 @@ bool RAGreedy::reassignVReg(LiveInterval &InterferingVReg, E = TRC->allocation_order_end(*MF); I != E; ++I) { unsigned PhysReg = *I; - if (PhysReg == OldPhysReg) + if (PhysReg == OldPhysReg || ReservedRegs.test(PhysReg)) continue; // Instantiate a "subquery", not to be confused with the Queries array. -- cgit v1.2.3