diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-08-07 14:36:27 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-08-07 14:36:27 +0000 |
| commit | 948ff87d7de80ba0e959c322f19aa928c4ae7ad4 (patch) | |
| tree | 29bd3710c8bdb0e242c201412a78ce7eabf487d3 /llvm/test/Transforms/InstCombine/minnum.ll | |
| parent | e03993e6c73d8992f7d9c435ccd25a69f259316f (diff) | |
| download | bcm5719-llvm-948ff87d7de80ba0e959c322f19aa928c4ae7ad4.tar.gz bcm5719-llvm-948ff87d7de80ba0e959c322f19aa928c4ae7ad4.zip | |
[InstSimplify] move minnum/maxnum with common op fold from instcombine
llvm-svn: 339144
Diffstat (limited to 'llvm/test/Transforms/InstCombine/minnum.ll')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/minnum.ll | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/llvm/test/Transforms/InstCombine/minnum.ll b/llvm/test/Transforms/InstCombine/minnum.ll index 48e8ea89c6f..94c8b5518b2 100644 --- a/llvm/test/Transforms/InstCombine/minnum.ll +++ b/llvm/test/Transforms/InstCombine/minnum.ll @@ -147,48 +147,6 @@ define float @minnum_f32_val_nan(float %x) { ret float %y } -define float @minnum_x_minnum_x_y(float %x, float %y) { -; CHECK-LABEL: @minnum_x_minnum_x_y( -; CHECK-NEXT: [[A:%.*]] = call float @llvm.minnum.f32(float [[X:%.*]], float [[Y:%.*]]) -; CHECK-NEXT: ret float [[A]] -; - %a = call float @llvm.minnum.f32(float %x, float %y) - %b = call float @llvm.minnum.f32(float %x, float %a) - ret float %b -} - -define float @minnum_y_minnum_x_y(float %x, float %y) { -; CHECK-LABEL: @minnum_y_minnum_x_y( -; CHECK-NEXT: [[A:%.*]] = call float @llvm.minnum.f32(float [[X:%.*]], float [[Y:%.*]]) -; CHECK-NEXT: ret float [[A]] -; - %a = call float @llvm.minnum.f32(float %x, float %y) - %b = call float @llvm.minnum.f32(float %y, float %a) - ret float %b -} - -define float @minnum_z_minnum_x_y(float %x, float %y, float %z) { -; CHECK-LABEL: @minnum_z_minnum_x_y( -; CHECK-NEXT: [[A:%.*]] = call float @llvm.minnum.f32(float [[X:%.*]], float [[Y:%.*]]) -; CHECK-NEXT: [[B:%.*]] = call float @llvm.minnum.f32(float [[Z:%.*]], float [[A]]) -; CHECK-NEXT: ret float [[B]] -; - %a = call float @llvm.minnum.f32(float %x, float %y) - %b = call float @llvm.minnum.f32(float %z, float %a) - ret float %b -} - -define float @minnum_minnum_x_y_z(float %x, float %y, float %z) { -; CHECK-LABEL: @minnum_minnum_x_y_z( -; CHECK-NEXT: [[A:%.*]] = call float @llvm.minnum.f32(float [[X:%.*]], float [[Y:%.*]]) -; CHECK-NEXT: [[B:%.*]] = call float @llvm.minnum.f32(float [[A]], float [[Z:%.*]]) -; CHECK-NEXT: ret float [[B]] -; - %a = call float @llvm.minnum.f32(float %x, float %y) - %b = call float @llvm.minnum.f32(float %a, float %z) - ret float %b -} - define float @minnum4(float %x, float %y, float %z, float %w) { ; CHECK-LABEL: @minnum4( ; CHECK-NEXT: [[A:%.*]] = call float @llvm.minnum.f32(float [[X:%.*]], float [[Y:%.*]]) |

