aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2025-04-14 09:37:09 +0100
committerGitHub <noreply@github.com>2025-04-14 09:37:09 +0100
commit95d526f7f587cc7a3db785169967f8dad0ba3978 (patch)
treecd26ae0705f557447b5746a528201ec1d719b4e1 /clang/lib/CodeGen/CodeGenModule.cpp
parent931a78a1db3da210a1ed5681778e37fa011cdf23 (diff)
downloadllvm-95d526f7f587cc7a3db785169967f8dad0ba3978.zip
llvm-95d526f7f587cc7a3db785169967f8dad0ba3978.tar.gz
llvm-95d526f7f587cc7a3db785169967f8dad0ba3978.tar.bz2
[MLIR][Tosa] Fix argmax NaN propagate lowering (#133074)
In the propagate mode, NaN compare equal to each other so in case of several NaNs the index of the first one needs to be returned. This commit changes the index update condition to check that the current index is not that of a NaN. The commit also simplifies argmax NaN ignore lowering to only use OGT. This prevent any update in case of NaN. The only case where the index of a NaN is returned is when all values are NaN and this is covered by the fact that the initial index value is 0 so no update will result in 0 being returned.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions