diff options
| author | Alina Sbirlea <asbirlea@google.com> | 2018-09-10 23:47:21 +0000 |
|---|---|---|
| committer | Alina Sbirlea <asbirlea@google.com> | 2018-09-10 23:47:21 +0000 |
| commit | 116caa2920c5fc2758ca18a37e7fa0e630b7aa7e (patch) | |
| tree | 0c504decf11a973600277f93a0fc323eafec5b0e /llvm/test/Transforms/InstCombine/select.ll | |
| parent | cd7bd8262a53a8162f8829587ff509e23f684952 (diff) | |
| download | bcm5719-llvm-116caa2920c5fc2758ca18a37e7fa0e630b7aa7e.tar.gz bcm5719-llvm-116caa2920c5fc2758ca18a37e7fa0e630b7aa7e.zip | |
[InstCombine] Partially revert rL341674 due to PR38897.
Summary:
Revert min/max changes in rL341674 dues to high compile times causing timeouts (PR38897).
Checking in to unblock failing builds. Patch available for post-commit review and re-revert once resolved.
Working on a smaller reproducer for PR38897.
Reviewers: craig.topper, spatel
Subscribers: sanjoy, jlebar, llvm-commits
Differential Revision: https://reviews.llvm.org/D51897
llvm-svn: 341883
Diffstat (limited to 'llvm/test/Transforms/InstCombine/select.ll')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/select.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/InstCombine/select.ll b/llvm/test/Transforms/InstCombine/select.ll index 5ea0f34e399..b42f15714b3 100644 --- a/llvm/test/Transforms/InstCombine/select.ll +++ b/llvm/test/Transforms/InstCombine/select.ll @@ -1329,13 +1329,13 @@ define i32 @PR23757(i32 %x) { ret i32 %sel } -; max(max(~a, -1), -1) --> ~min(a, 0) +; max(max(~a, -1), -1) --> max(~a, -1) define i32 @PR27137(i32 %a) { ; CHECK-LABEL: @PR27137( -; CHECK-NEXT: [[TMP1:%.*]] = icmp slt i32 [[A:%.*]], 0 -; CHECK-NEXT: [[TMP2:%.*]] = select i1 [[TMP1]], i32 [[A]], i32 0 -; CHECK-NEXT: [[S1:%.*]] = xor i32 [[TMP2]], -1 +; CHECK-NEXT: [[NOT_A:%.*]] = xor i32 [[A:%.*]], -1 +; CHECK-NEXT: [[TMP1:%.*]] = icmp sgt i32 [[NOT_A]], -1 +; CHECK-NEXT: [[S1:%.*]] = select i1 [[TMP1]], i32 [[NOT_A]], i32 -1 ; CHECK-NEXT: ret i32 [[S1]] ; %not_a = xor i32 %a, -1 |

