[PATCH] D134354: [AMDGPU][GlobalISel] Support mad/fma_mix selection
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 27 03:48:11 PDT 2022
foad added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/Utils.cpp:665-667
+ return isKnownNeverNaN(DefMI->getOperand(1).getReg(), MRI, SNaN) &&
+ isKnownNeverNaN(DefMI->getOperand(2).getReg(), MRI, SNaN) &&
+ isKnownNeverNaN(DefMI->getOperand(3).getReg(), MRI, SNaN);
----------------
This isn't true. You can get a NaN result even if none of the inputs are NaNs, e.g. from +inf + -inf.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134354/new/
https://reviews.llvm.org/D134354
More information about the llvm-commits
mailing list