diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-07-11 16:52:18 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-07-11 16:52:18 +0000 |
| commit | 14eeb5a5c0fd8c79a71aed6ce240a32cd8f18e85 (patch) | |
| tree | 2311d17bd7e625bc2fbbdb3a4bfee5c51b3e5c70 /llvm/test/Transforms/InstCombine | |
| parent | 569200aab8cf72ef60074f87243d74f34b86b73a (diff) | |
| download | bcm5719-llvm-14eeb5a5c0fd8c79a71aed6ce240a32cd8f18e85.tar.gz bcm5719-llvm-14eeb5a5c0fd8c79a71aed6ce240a32cd8f18e85.zip | |
[InstSimplify] add/move tests for add folds; NFC
isKnownNegation() is currently proposed as part of D48754,
but it could be used to make InstSimplify stronger independently
of any abs() improvements.
llvm-svn: 336822
Diffstat (limited to 'llvm/test/Transforms/InstCombine')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/sub.ll | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/test/Transforms/InstCombine/sub.ll b/llvm/test/Transforms/InstCombine/sub.ll index 997ee6e16b5..c48ab6db7f7 100644 --- a/llvm/test/Transforms/InstCombine/sub.ll +++ b/llvm/test/Transforms/InstCombine/sub.ll @@ -250,15 +250,6 @@ define i64 @test18(i64 %Y) { ret i64 %tmp.8 } -define i32 @test19(i32 %X, i32 %Y) { -; CHECK-LABEL: @test19( -; CHECK-NEXT: ret i32 [[X:%.*]] -; - %Z = sub i32 %X, %Y - %Q = add i32 %Z, %Y - ret i32 %Q -} - define i1 @test20(i32 %g, i32 %h) { ; CHECK-LABEL: @test20( ; CHECK-NEXT: [[TMP_4:%.*]] = icmp ne i32 [[H:%.*]], 0 |

