summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2015-11-10 21:38:26 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2015-11-10 21:38:26 +0000
commit34af5e1c760b922fdea58ced7ca3ea53e6b53347 (patch)
tree762490a76fb2318435fa593e02d0f2d3716d818d /llvm/test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll
parente39475d44d5a27ee86a1acecff88d26d3baa5d18 (diff)
downloadbcm5719-llvm-34af5e1c760b922fdea58ced7ca3ea53e6b53347.tar.gz
bcm5719-llvm-34af5e1c760b922fdea58ced7ca3ea53e6b53347.zip
[PowerPC] Add an MI SSA peephole pass.
This patch adds a pass for doing PowerPC peephole optimizations at the MI level while the code is still in SSA form. This allows for easy modifications to the instructions while depending on a subsequent pass of DCE. Both passes are very fast due to the characteristics of SSA. At this time, the only peepholes added are for cleaning up various redundancies involving the XXPERMDI instruction. However, I would expect this will be a useful place to add more peepholes for inefficiencies generated during instruction selection. The pass is placed after VSX swap optimization, as it is best to let that pass remove unnecessary swaps before performing any remaining clean-ups. The utility of these clean-ups are demonstrated by changes to four existing test cases, all of which now have tighter expected code generation. I've also added Eric Schweiz's bugpoint-reduced test from PR25157, for which we now generate tight code. One other test started failing for me, and I've fixed it (test/Transforms/PlaceSafepoints/finite-loops.ll) as well; this is not related to my changes, and I'm not sure why it works before and not after. The problem is that the CHECK-NOT: of "statepoint" from test1 fails because of the "statepoint" in test2, and so forth. Adding a CHECK-LABEL in between keeps the different occurrences of that string properly scoped. llvm-svn: 252651
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll b/llvm/test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll
index 35d501e40cb..7e8991647ae 100644
--- a/llvm/test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll
+++ b/llvm/test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll
@@ -63,7 +63,7 @@ entry:
ret <2 x i64> %splat.splat
; CHECK: mtvsrd {{[0-9]+}}, 3
; CHECK-LE: mtvsrd [[REG1:[0-9]+]], 3
-; CHECK-LE: xxswapd {{[0-9]+}}, [[REG1]]
+; CHECK-LE: xxspltd [[REG1]], [[REG1]], 0
}
; Function Attrs: nounwind
OpenPOWER on IntegriCloud