summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/ppc-redzone-alignment-bug.ll
diff options
context:
space:
mode:
authorStefan Pintilie <stefanp@ca.ibm.com>2018-01-09 21:57:49 +0000
committerStefan Pintilie <stefanp@ca.ibm.com>2018-01-09 21:57:49 +0000
commit1712700842c03afcb9c3c758f95fa039f912ec02 (patch)
tree222860eb62ec863f4181b52c3e9bb27523416dc0 /llvm/test/CodeGen/PowerPC/ppc-redzone-alignment-bug.ll
parent07657a8d7faf7cf255858485453ed1e5a1bdc5cd (diff)
downloadbcm5719-llvm-1712700842c03afcb9c3c758f95fa039f912ec02.tar.gz
bcm5719-llvm-1712700842c03afcb9c3c758f95fa039f912ec02.zip
[PowerPC] Manually schedule the prologue and epilogue
This patch makes the following changes to the schedule of instructions in the prologue and epilogue. The stack pointer update is moved down in the prologue so that the callee saves do not have to wait for the update to happen. Saving the lr is moved down in the prologue to hide the latency of the mflr. The stack pointer is moved up in the epilogue so that restoring of the lr can happen sooner. The mtlr is moved up in the epilogue so that it is away form the blr at the end of the epilogue. The latency of the mtlr can now be hidden by the loads of the callee saved registers. This commit is almost identical to this one: r322036 except that two warnings that broke build bots have been fixed. The revision number is D41737 as before. llvm-svn: 322124
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/ppc-redzone-alignment-bug.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/ppc-redzone-alignment-bug.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/PowerPC/ppc-redzone-alignment-bug.ll b/llvm/test/CodeGen/PowerPC/ppc-redzone-alignment-bug.ll
index 87b45beeab7..dce8b3ac5b8 100644
--- a/llvm/test/CodeGen/PowerPC/ppc-redzone-alignment-bug.ll
+++ b/llvm/test/CodeGen/PowerPC/ppc-redzone-alignment-bug.ll
@@ -16,12 +16,12 @@ entry:
; stfd 14, 416(1)
; After the fix by patch D34337:
+; CHECK-LE:std 15, -280(1)
+; CHECK-LE:stfd 14, -144(1)
; CHECK-LE: stdu 1, -528(1)
-; CHECK-LE:std 15, 248(1)
-; CHECK-LE:stfd 14, 384(1)
+; CHECK-BE:std 15, -280(1)
+; CHECK-BE:stfd 14, -144(1)
; CHECK-BE: stdu 1, -544(1)
-; CHECK-BE:std 15, 264(1)
-; CHECK-BE:stfd 14, 400(1)
}
define signext i32 @foo() {
OpenPOWER on IntegriCloud