diff options
author | Hal Finkel <hfinkel@anl.gov> | 2012-06-09 22:10:19 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2012-06-09 22:10:19 +0000 |
commit | 2edfbddcf069745cce51b322acb22c0b4a2c2517 (patch) | |
tree | dc39c065ed55a281277493283e7f724f028b817f /llvm/test/CodeGen/PowerPC/ctrloops.ll | |
parent | 2d7fc6427449c577a8fa7c895d0dbb534b185b1f (diff) | |
download | bcm5719-llvm-2edfbddcf069745cce51b322acb22c0b4a2c2517.tar.gz bcm5719-llvm-2edfbddcf069745cce51b322acb22c0b4a2c2517.zip |
Improve ext/trunc patterns on PPC64.
The PPC64 backend had patterns for i32 <-> i64 extensions and truncations that
would leave self-moves in the final assembly. Replacing those patterns with ones
based on the SUBREG builtins yields better-looking code.
Thanks to Jakob and Owen for their suggestions in this matter.
llvm-svn: 158283
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/ctrloops.ll')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/ctrloops.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/ctrloops.ll b/llvm/test/CodeGen/PowerPC/ctrloops.ll index f7bd354ce8e..4b6f7b94af4 100644 --- a/llvm/test/CodeGen/PowerPC/ctrloops.ll +++ b/llvm/test/CodeGen/PowerPC/ctrloops.ll @@ -20,6 +20,7 @@ for.body: ; preds = %for.body, %entry for.end: ; preds = %for.body ret void ; CHECK: @test1 +; CHECK-NOT: or 3, 3, 3 ; CHECK: mtctr ; CHECK-NOT: addi ; CHECK-NOT: cmplwi |