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 | 0a3e33b633aa645465b6bda0bba82788b0644a01 (patch) | |
tree | e7dd88d03043dee36cd46da0456b8d3623768320 /test/CodeGen/PowerPC/ctrloops.ll | |
parent | 2a5dc43bd97487ea33a1af4e686661ad90f192ad (diff) | |
download | external_llvm-0a3e33b633aa645465b6bda0bba82788b0644a01.zip external_llvm-0a3e33b633aa645465b6bda0bba82788b0644a01.tar.gz external_llvm-0a3e33b633aa645465b6bda0bba82788b0644a01.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/ctrloops.ll')
-rw-r--r-- | test/CodeGen/PowerPC/ctrloops.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/ctrloops.ll b/test/CodeGen/PowerPC/ctrloops.ll index f7bd354..4b6f7b9 100644 --- a/test/CodeGen/PowerPC/ctrloops.ll +++ b/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 |