summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/func-argpassing.ll
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2013-02-05 19:24:39 +0000
committerOwen Anderson <resistor@mac.com>2013-02-05 19:24:39 +0000
commitde89ecf1fc188da86e59979a90611f78d9fd0770 (patch)
treed9c4fcf6c3e28429f807c9f55255c36bf0dff956 /llvm/test/CodeGen/AArch64/func-argpassing.ll
parente4778758731f906895d3857c6223fcae815dcb1b (diff)
downloadbcm5719-llvm-de89ecf1fc188da86e59979a90611f78d9fd0770.tar.gz
bcm5719-llvm-de89ecf1fc188da86e59979a90611f78d9fd0770.zip
Reapply r174343, with a fix for a scary DAG combine bug where it failed to differentiate between the alignment of the
base point of a load, and the overall alignment of the load. This caused infinite loops in DAG combine with the original application of this patch. ORIGINAL COMMIT LOG: When the target-independent DAGCombiner inferred a higher alignment for a load, it would replace the load with one with the higher alignment. However, it did not place the new load in the worklist, which prevented later DAG combines in the same phase (for example, target-specific combines) from ever seeing it. This patch corrects that oversight, and updates some tests whose output changed due to slightly different DAGCombine outputs. llvm-svn: 174431
Diffstat (limited to 'llvm/test/CodeGen/AArch64/func-argpassing.ll')
-rw-r--r--llvm/test/CodeGen/AArch64/func-argpassing.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AArch64/func-argpassing.ll b/llvm/test/CodeGen/AArch64/func-argpassing.ll
index db58798ca55..760c8d49d07 100644
--- a/llvm/test/CodeGen/AArch64/func-argpassing.ll
+++ b/llvm/test/CodeGen/AArch64/func-argpassing.ll
@@ -178,7 +178,8 @@ define void @check_i128_stackalign(i32 %val0, i32 %val1, i32 %val2, i32 %val3,
; Nothing local on stack in current codegen, so first stack is 16 away
; CHECK: ldr {{x[0-9]+}}, [sp, #16]
; Important point is that we address sp+24 for second dword
-; CHECK: ldr {{x[0-9]+}}, [sp, #24]
+; CHECK: add [[REG:x[0-9]+]], sp, #16
+; CHECK: ldr {{x[0-9]+}}, {{\[}}[[REG]], #8]
ret void
}
OpenPOWER on IntegriCloud