mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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
This commit is contained in:
@@ -7,7 +7,7 @@ define void @t() nounwind {
|
||||
entry:
|
||||
; CHECK: vmov.I64 q15, #0
|
||||
; CHECK: vmov.32 d30[0], r0
|
||||
; CHECK: vmov q0, q15
|
||||
; CHECK: vmov q8, q15
|
||||
%tmp = alloca %struct.int32x4_t, align 16
|
||||
call void asm sideeffect "vmov.I64 q15, #0\0Avmov.32 d30[0], $1\0Avmov ${0:q}, q15\0A", "=*w,r,~{d31},~{d30}"(%struct.int32x4_t* %tmp, i32 8192) nounwind
|
||||
ret void
|
||||
@@ -18,7 +18,7 @@ entry:
|
||||
|
||||
define void @t2() nounwind {
|
||||
entry:
|
||||
; CHECK: vmov d30, d0
|
||||
; CHECK: vmov d30, d16
|
||||
; CHECK: vmov.32 r0, d30[0]
|
||||
%asmtmp2 = tail call i32 asm sideeffect "vmov d30, $1\0Avmov.32 $0, d30[0]\0A", "=r,w,~{d30}"(<2 x i32> undef) nounwind
|
||||
ret void
|
||||
|
Reference in New Issue
Block a user