From ae47c6d69e2e34bc558a302586cbc3f27a6d7334 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Thu, 26 Aug 2010 00:58:06 +0000 Subject: [PATCH] Enable pre-RA virtual frame base register allocation. rdar://8277890 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112127 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMBaseRegisterInfo.cpp | 2 +- test/CodeGen/Thumb/large-stack.ll | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/lib/Target/ARM/ARMBaseRegisterInfo.cpp index bceaceb0805..eb56e448a9c 100644 --- a/lib/Target/ARM/ARMBaseRegisterInfo.cpp +++ b/lib/Target/ARM/ARMBaseRegisterInfo.cpp @@ -47,7 +47,7 @@ static cl::opt ForceAllBaseRegAlloc("arm-force-base-reg-alloc", cl::Hidden, cl::init(false), cl::desc("Force use of virtual base registers for stack load/store")); static cl::opt -EnableLocalStackAlloc("enable-local-stack-alloc", cl::init(false), cl::Hidden, +EnableLocalStackAlloc("enable-local-stack-alloc", cl::init(true), cl::Hidden, cl::desc("Enable pre-regalloc stack frame index allocation")); } diff --git a/test/CodeGen/Thumb/large-stack.ll b/test/CodeGen/Thumb/large-stack.ll index b05e6bf604e..b289484f5ef 100644 --- a/test/CodeGen/Thumb/large-stack.ll +++ b/test/CodeGen/Thumb/large-stack.ll @@ -20,8 +20,8 @@ define void @test2() { define i32 @test3() { ; CHECK: test3: -; CHECK: ldr r1, LCPI -; CHECK: add sp, r1 +; CHECK: ldr r2, LCPI +; CHECK: add sp, r2 ; CHECK: ldr r1, LCPI ; CHECK: add r1, sp ; CHECK: mov sp, r7 -- 2.34.1