diff options
author | Clément Fournier <clement.fournier@tu-dresden.de> | 2025-01-13 08:21:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-13 15:21:07 +0800 |
commit | 36c3466aef6c8bfde0ddc736b8403e2c45f5e1c6 (patch) | |
tree | 008d0f7083e4d5a0665af2c4842f598d5af70f39 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | 6f558e0e124012fd00927d6d42545649bd7e0dcd (diff) | |
download | llvm-36c3466aef6c8bfde0ddc736b8403e2c45f5e1c6.zip llvm-36c3466aef6c8bfde0ddc736b8403e2c45f5e1c6.tar.gz llvm-36c3466aef6c8bfde0ddc736b8403e2c45f5e1c6.tar.bz2 |
[mlir][linalg] Fix neutral elt for softmax (#118952)
The decomposition of `linalg.softmax` uses `maxnumf`, but the identity
element that is used in the generated code is the one for `maximumf`.
They are not the same, as the identity for `maxnumf` is `NaN`, while the
one of `maximumf` is `-Infty`. This is wrong and prevents the maxnumf
from being folded.
Related to #114595, which fixed the folder for maxnumf.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions