diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2017-01-30 23:35:52 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2017-01-30 23:35:52 +0000 |
| commit | 8c5f236197c31d6edbd9f65a019144bfe56e6f28 (patch) | |
| tree | ea12f98e8aa7fd0c2263952d83176aa9a6b54743 /llvm/test/Transforms | |
| parent | 6d76b7b455cdc9927371785f77f7ae38509c1b03 (diff) | |
| download | bcm5719-llvm-8c5f236197c31d6edbd9f65a019144bfe56e6f28.tar.gz bcm5719-llvm-8c5f236197c31d6edbd9f65a019144bfe56e6f28.zip | |
[InstCombine] enable (X <<nsw C1) >>s C2 --> X <<nsw (C1 - C2) for vectors with splat constants
llvm-svn: 293570
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/shift.ll | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/Transforms/InstCombine/shift.ll b/llvm/test/Transforms/InstCombine/shift.ll index a5ad0aa4f68..60ba35557f7 100644 --- a/llvm/test/Transforms/InstCombine/shift.ll +++ b/llvm/test/Transforms/InstCombine/shift.ll @@ -1003,8 +1003,7 @@ define i32 @test52(i32 %x) { define <2 x i32> @test52_splat_vec(<2 x i32> %x) { ; CHECK-LABEL: @test52_splat_vec( -; CHECK-NEXT: [[A:%.*]] = shl nsw <2 x i32> %x, <i32 3, i32 3> -; CHECK-NEXT: [[B:%.*]] = ashr exact <2 x i32> [[A]], <i32 1, i32 1> +; CHECK-NEXT: [[B:%.*]] = shl nsw <2 x i32> %x, <i32 2, i32 2> ; CHECK-NEXT: ret <2 x i32> [[B]] ; %A = shl nsw <2 x i32> %x, <i32 3, i32 3> |

