diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2017-10-13 20:29:11 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2017-10-13 20:29:11 +0000 |
| commit | f0242de143aa27f794fce1c0dd36698a44590371 (patch) | |
| tree | 1f810d5d3a0c033c2f612c4ca86765dc9925a9aa /llvm/test/Transforms/InstCombine/add2.ll | |
| parent | 4d70754e3cf57d76647b62cecaa37fb06815566a (diff) | |
| download | bcm5719-llvm-f0242de143aa27f794fce1c0dd36698a44590371.tar.gz bcm5719-llvm-f0242de143aa27f794fce1c0dd36698a44590371.zip | |
[InstCombine] move code to remove repeated constant check; NFCI
Also, consolidate tests for this fold in one place.
llvm-svn: 315745
Diffstat (limited to 'llvm/test/Transforms/InstCombine/add2.ll')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/add2.ll | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/test/Transforms/InstCombine/add2.ll b/llvm/test/Transforms/InstCombine/add2.ll index 2fe9e8cadeb..59f757f8628 100644 --- a/llvm/test/Transforms/InstCombine/add2.ll +++ b/llvm/test/Transforms/InstCombine/add2.ll @@ -68,15 +68,6 @@ define <2 x i64> @test7(<2 x i64> %A) { ; CHECK-NEXT: ret <2 x i64> %add } -define <2 x i64> @test8(<2 x i64> %A) { - %xor = xor <2 x i64> %A, <i64 -1, i64 -1> - %add = add <2 x i64> %xor, <i64 2, i64 3> - ret <2 x i64> %add -; CHECK-LABEL: @test8( -; CHECK-NEXT: %add = sub <2 x i64> <i64 1, i64 2>, %A -; CHECK-NEXT: ret <2 x i64> %add -} - define i16 @test9(i16 %a) { %b = mul i16 %a, 2 %c = mul i16 %a, 32767 |

