This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] Remove fmin/fmax.NaN.f64 again
ClosedPublic

Authored by csigg on Jan 27 2022, 11:49 AM.

Details

Summary

Added in https://reviews.llvm.org/D117204, but it does not exist.

Diff Detail

Event Timeline

csigg created this revision.Jan 27 2022, 11:49 AM
csigg requested review of this revision.Jan 27 2022, 11:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2022, 11:49 AM
tra added a comment.Jan 27 2022, 1:01 PM

Is it fine to leave the change in llvm/lib/Target/NVPTX/NVPTXInstrInfo.td as is?

I'd add a comment around FMINNAN that f64 variants do not actually exist. As long as we never lower to it it's not worth the trouble of refactoring tablegen to deal with a minor exception.

llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
575–577

Shouldn't all these actions be Legal, given that we have instructions for them?

csigg updated this revision to Diff 403780.Jan 27 2022, 1:33 PM

Add comment.

csigg edited the summary of this revision. (Show Details)Jan 27 2022, 1:36 PM

Is it fine to leave the change in llvm/lib/Target/NVPTX/NVPTXInstrInfo.td as is?

I'd add a comment around FMINNAN that f64 variants do not actually exist. As long as we never lower to it it's not worth the trouble of refactoring tablegen to deal with a minor exception.

Makes sense. Thanks.

llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
575–577

They are Legal for sm_80+, see the GetMinMaxAction() implementation.
For f16 and v2f16, we additionally require that fp16 is not disabled (see setFP16OperationAction())

tra accepted this revision.Jan 27 2022, 1:57 PM
This revision is now accepted and ready to land.Jan 27 2022, 1:57 PM
This revision was landed with ongoing or failed builds.Jan 27 2022, 10:46 PM
This revision was automatically updated to reflect the committed changes.