aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb2/2010-06-14-NEONCoalescer.ll
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-10-08 06:15:13 +0000
committerBob Wilson <bob.wilson@apple.com>2010-10-08 06:15:13 +0000
commit7d24705f6538688937f571961d41c7bb2985c7e3 (patch)
tree5d387b68a25a6bebf6076c21a122b512674f628b /test/CodeGen/Thumb2/2010-06-14-NEONCoalescer.ll
parent40755467393f4569200cbc1cf1e9feeea4668611 (diff)
downloadexternal_llvm-7d24705f6538688937f571961d41c7bb2985c7e3.zip
external_llvm-7d24705f6538688937f571961d41c7bb2985c7e3.tar.gz
external_llvm-7d24705f6538688937f571961d41c7bb2985c7e3.tar.bz2
Change register allocation order for ARM VFP and NEON registers to put the
callee-saved registers at the end of the lists. Also prefer to avoid using the low registers that are in register subclasses required by certain instructions, so that those registers will more likely be available when needed. This change makes a huge improvement in spilling in some cases. Thanks to Jakob for helping me realize the problem. Most of this patch is fixing the testsuite. There are quite a few places where we're checking for specific registers. I changed those to wildcards in places where that doesn't weaken the tests. The spill-q.ll and thumb2-spill-q.ll tests stopped spilling with this change, so I added a bunch of live values to force spills on those tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2/2010-06-14-NEONCoalescer.ll')
-rw-r--r--test/CodeGen/Thumb2/2010-06-14-NEONCoalescer.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/Thumb2/2010-06-14-NEONCoalescer.ll b/test/CodeGen/Thumb2/2010-06-14-NEONCoalescer.ll
index 2675006..0b6c92b 100644
--- a/test/CodeGen/Thumb2/2010-06-14-NEONCoalescer.ll
+++ b/test/CodeGen/Thumb2/2010-06-14-NEONCoalescer.ll
@@ -23,8 +23,8 @@ entry:
%4 = insertelement <2 x double> %2, double %V.0.ph, i32 1 ; <<2 x double>> [#uses=2]
; Constant pool load followed by add.
; Then clobber the loaded register, not the sum.
-; CHECK: vldr.64 [[LDR:d.]]
-; CHECK: vadd.f64 [[ADD:d.]], [[LDR]], [[LDR]]
+; CHECK: vldr.64 [[LDR:d.*]],
+; CHECK: vadd.f64 [[ADD:d.*]], [[LDR]], [[LDR]]
; CHECK: vmov.f64 [[LDR]]
%5 = fadd <2 x double> %3, %3 ; <<2 x double>> [#uses=2]
%6 = fadd <2 x double> %4, %4 ; <<2 x double>> [#uses=2]