[PATCH] D118398: [NVPTX] Remove fmin/fmax.NaN.f64 again
Christian Sigg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 27 11:49:38 PST 2022
csigg created this revision.
csigg added a reviewer: tra.
Herald added subscribers: asavonic, sanjoy.google, hiraditya, jholewinski.
csigg requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Added in https://reviews.llvm.org/D117204, but it does not exist.
Is it fine to leave the change in llvm/lib/Target/NVPTX/NVPTXInstrInfo.td as is?
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D118398
Files:
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
llvm/test/CodeGen/NVPTX/fminimum-fmaximum.ll
Index: llvm/test/CodeGen/NVPTX/fminimum-fmaximum.ll
===================================================================
--- llvm/test/CodeGen/NVPTX/fminimum-fmaximum.ll
+++ llvm/test/CodeGen/NVPTX/fminimum-fmaximum.ll
@@ -25,9 +25,8 @@
; CHECK-LABEL: minimum_double
define double @minimum_double(double %a) #0 {
- ; CHECK-NONAN: setp
- ; CHECK-NONAN: selp.f64
- ; CHECK-NAN: min.NaN.f64
+ ; CHECK: setp
+ ; CHECK: selp.f64
%p = fcmp ult double %a, 0.0
%x = select i1 %p, double %a, double 0.0
ret double %x
@@ -69,9 +68,8 @@
; CHECK-LABEL: maximum_double
define double @maximum_double(double %a) #0 {
- ; CHECK-NONAN: setp
- ; CHECK-NONAN: selp.f64
- ; CHECK-NAN: max.NaN.f64
+ ; CHECK: setp
+ ; CHECK: selp.f64
%p = fcmp ugt double %a, 0.0
%x = select i1 %p, double %a, double 0.0
ret double %x
Index: llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
===================================================================
--- llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -574,7 +574,6 @@
for (const auto &Op : {ISD::FMINIMUM, ISD::FMAXIMUM}) {
setFP16OperationAction(Op, MVT::f16, GetMinMaxAction(Expand), Expand);
setOperationAction(Op, MVT::f32, GetMinMaxAction(Expand));
- setOperationAction(Op, MVT::f64, GetMinMaxAction(Expand));
setFP16OperationAction(Op, MVT::v2f16, GetMinMaxAction(Expand), Expand);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118398.403738.patch
Type: text/x-patch
Size: 1415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220127/34dfd43e/attachment.bin>
More information about the llvm-commits
mailing list