[PATCH] D137655: Expand fminimum and fmaximum into a pair of selects
Goran Flegar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 10 06:48:04 PST 2022
gflegar added a comment.
I think this is the best we can do short of handling the new op. We only do the expansion for the NVPTX backed, and don't support it otherwise. In the NVPTX backed, the intermediate code still ends up being semantically incorrect for +/-0.0, but since FMINNUM/FMAXNUM lower to PTX min/max, which do implement the 2018 semantics of those ops, the final PTX ends up being correct.
Once we have an op in LLVM that represents the 2018 semantics, we can lower it to that instead, to make the intermediate code semantically correct as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137655/new/
https://reviews.llvm.org/D137655
More information about the llvm-commits
mailing list