diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-11-07 15:44:26 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-11-07 15:44:26 +0000 |
| commit | bb521e63afe78633bf155f472f3fc439318115c3 (patch) | |
| tree | 2ef65651b91742d03e8a28b108cf5f1129940ea1 /llvm/test/Transforms | |
| parent | 35dfce723c42be78e42208035d85792272bf87c9 (diff) | |
| download | bcm5719-llvm-bb521e63afe78633bf155f472f3fc439318115c3.tar.gz bcm5719-llvm-bb521e63afe78633bf155f472f3fc439318115c3.zip | |
[InstCombine] peek through fabs() when checking isnan()
That should be the end of the missing cases for this fold.
See earlier patches in this series:
rL346321
rL346324
llvm-svn: 346327
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/fcmp.ll | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/Transforms/InstCombine/fcmp.ll b/llvm/test/Transforms/InstCombine/fcmp.ll index b8cf6e42b2f..15d9368f49e 100644 --- a/llvm/test/Transforms/InstCombine/fcmp.ll +++ b/llvm/test/Transforms/InstCombine/fcmp.ll @@ -298,8 +298,7 @@ define <2 x i1> @fabs_ueq(<2 x float> %a) { define <2 x i1> @fabs_ord(<2 x float> %a) { ; CHECK-LABEL: @fabs_ord( -; CHECK-NEXT: [[CALL:%.*]] = call <2 x float> @llvm.fabs.v2f32(<2 x float> [[A:%.*]]) -; CHECK-NEXT: [[CMP:%.*]] = fcmp arcp ord <2 x float> [[CALL]], zeroinitializer +; CHECK-NEXT: [[CMP:%.*]] = fcmp ord <2 x float> [[A:%.*]], zeroinitializer ; CHECK-NEXT: ret <2 x i1> [[CMP]] ; %call = call <2 x float> @llvm.fabs.v2f32(<2 x float> %a) @@ -309,8 +308,7 @@ define <2 x i1> @fabs_ord(<2 x float> %a) { define <2 x i1> @fabs_uno(<2 x float> %a) { ; CHECK-LABEL: @fabs_uno( -; CHECK-NEXT: [[CALL:%.*]] = call <2 x float> @llvm.fabs.v2f32(<2 x float> [[A:%.*]]) -; CHECK-NEXT: [[CMP:%.*]] = fcmp arcp uno <2 x float> [[CALL]], zeroinitializer +; CHECK-NEXT: [[CMP:%.*]] = fcmp uno <2 x float> [[A:%.*]], zeroinitializer ; CHECK-NEXT: ret <2 x i1> [[CMP]] ; %call = call <2 x float> @llvm.fabs.v2f32(<2 x float> %a) |

