diff options
author | Eric Christopher <echristo@gmail.com> | 2019-04-17 02:12:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2019-04-17 02:12:23 +0000 |
commit | a86343512845c9c1fdbac865fea88aa5fce7142a (patch) | |
tree | 666fc6353de19ad8b00e56b67edd33f24104e4a7 /llvm/test/Transforms/InstCombine/icmp-sub.ll | |
parent | 7f8ca6e3679b3af951cb7a4b1377edfaa3244b93 (diff) | |
download | bcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.tar.gz bcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.zip |
Temporarily Revert "Add basic loop fusion pass."
As it's causing some bot failures (and per request from kbarton).
This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda.
llvm-svn: 358546
Diffstat (limited to 'llvm/test/Transforms/InstCombine/icmp-sub.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/icmp-sub.ll | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/llvm/test/Transforms/InstCombine/icmp-sub.ll b/llvm/test/Transforms/InstCombine/icmp-sub.ll deleted file mode 100644 index c66581b3b5a..00000000000 --- a/llvm/test/Transforms/InstCombine/icmp-sub.ll +++ /dev/null @@ -1,86 +0,0 @@ -; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -instcombine -S | FileCheck %s - -define i1 @test_nuw_and_unsigned_pred(i64 %x) { -; CHECK-LABEL: @test_nuw_and_unsigned_pred( -; CHECK-NEXT: [[Z:%.*]] = icmp ugt i64 [[X:%.*]], 7 -; CHECK-NEXT: ret i1 [[Z]] -; - %y = sub nuw i64 10, %x - %z = icmp ult i64 %y, 3 - ret i1 %z -} - -define i1 @test_nsw_and_signed_pred(i64 %x) { -; CHECK-LABEL: @test_nsw_and_signed_pred( -; CHECK-NEXT: [[Z:%.*]] = icmp slt i64 [[X:%.*]], -7 -; CHECK-NEXT: ret i1 [[Z]] -; - %y = sub nsw i64 3, %x - %z = icmp sgt i64 %y, 10 - ret i1 %z -} - -define i1 @test_nuw_nsw_and_unsigned_pred(i64 %x) { -; CHECK-LABEL: @test_nuw_nsw_and_unsigned_pred( -; CHECK-NEXT: [[Z:%.*]] = icmp ugt i64 [[X:%.*]], 6 -; CHECK-NEXT: ret i1 [[Z]] -; - %y = sub nuw nsw i64 10, %x - %z = icmp ule i64 %y, 3 - ret i1 %z -} - -define i1 @test_nuw_nsw_and_signed_pred(i64 %x) { -; CHECK-LABEL: @test_nuw_nsw_and_signed_pred( -; CHECK-NEXT: [[Z:%.*]] = icmp sgt i64 [[X:%.*]], 7 -; CHECK-NEXT: ret i1 [[Z]] -; - %y = sub nuw nsw i64 10, %x - %z = icmp slt i64 %y, 3 - ret i1 %z -} - -define i1 @test_negative_nuw_and_signed_pred(i64 %x) { -; CHECK-LABEL: @test_negative_nuw_and_signed_pred( -; CHECK-NEXT: [[Y:%.*]] = sub nuw i64 10, [[X:%.*]] -; CHECK-NEXT: [[Z:%.*]] = icmp slt i64 [[Y]], 3 -; CHECK-NEXT: ret i1 [[Z]] -; - %y = sub nuw i64 10, %x - %z = icmp slt i64 %y, 3 - ret i1 %z -} - -define i1 @test_negative_nsw_and_unsigned_pred(i64 %x) { -; CHECK-LABEL: @test_negative_nsw_and_unsigned_pred( -; CHECK-NEXT: [[Y:%.*]] = sub nsw i64 10, [[X:%.*]] -; CHECK-NEXT: [[Z:%.*]] = icmp ult i64 [[Y]], 3 -; CHECK-NEXT: ret i1 [[Z]] -; - %y = sub nsw i64 10, %x - %z = icmp ult i64 %y, 3 - ret i1 %z -} - -define i1 @test_negative_combined_sub_unsigned_overflow(i64 %x) { -; CHECK-LABEL: @test_negative_combined_sub_unsigned_overflow( -; CHECK-NEXT: [[Y:%.*]] = sub nuw i64 10, [[X:%.*]] -; CHECK-NEXT: [[Z:%.*]] = icmp ult i64 [[Y]], 11 -; CHECK-NEXT: ret i1 [[Z]] -; - %y = sub nuw i64 10, %x - %z = icmp ult i64 %y, 11 - ret i1 %z -} - -define i1 @test_negative_combined_sub_signed_overflow(i8 %x) { -; CHECK-LABEL: @test_negative_combined_sub_signed_overflow( -; CHECK-NEXT: [[Y:%.*]] = sub nsw i8 127, [[X:%.*]] -; CHECK-NEXT: [[Z:%.*]] = icmp slt i8 [[Y]], -1 -; CHECK-NEXT: ret i1 [[Z]] -; - %y = sub nsw i8 127, %x - %z = icmp slt i8 %y, -1 - ret i1 %z -} |