diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-10 07:08:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-10 07:08:30 +0000 |
commit | d8509424a404906a39e6ba7ba17eb58e22ff191d (patch) | |
tree | 4360ff5f9e8c2479bdf3f8b2fb97cbc17a30b197 /llvm/test/Transforms/InstCombine/apint-shift.ll | |
parent | 2b459fe7e1e3501063889ce7245a6ada56e104e6 (diff) | |
download | bcm5719-llvm-d8509424a404906a39e6ba7ba17eb58e22ff191d.tar.gz bcm5719-llvm-d8509424a404906a39e6ba7ba17eb58e22ff191d.zip |
change the preferred canonical form for a sign extension to be
lshr+ashr instead of trunc+sext. We want to avoid type
conversions whenever possible, it is easier to codegen expressions
without truncates and extensions.
llvm-svn: 93107
Diffstat (limited to 'llvm/test/Transforms/InstCombine/apint-shift.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/apint-shift.ll | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/test/Transforms/InstCombine/apint-shift.ll b/llvm/test/Transforms/InstCombine/apint-shift.ll index 6573b5bf4f4..55243a64918 100644 --- a/llvm/test/Transforms/InstCombine/apint-shift.ll +++ b/llvm/test/Transforms/InstCombine/apint-shift.ll @@ -168,13 +168,6 @@ define i11 @test23(i44 %A) { ret i11 %D } -define i17 @test24(i17 %X) { - %Y = and i17 %X, -5 ; <i17> [#uses=1] - %Z = shl i17 %Y, 9 ; <i17> [#uses=1] - %Q = ashr i17 %Z, 9 ; <i17> [#uses=1] - ret i17 %Q -} - define i37 @test25(i37 %tmp.2, i37 %AA) { %x = lshr i37 %AA, 17 ; <i37> [#uses=1] %tmp.3 = lshr i37 %tmp.2, 17 ; <i37> [#uses=1] |