[all-commits] [llvm/llvm-project] ae2104: [SelectionDAG] Fix NaN regression in fma dag-combi...
James Y Knight via All-commits
all-commits at lists.llvm.org
Tue Jul 1 15:10:51 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ae2104897c7d9f887c415b07fb2662486082b248
https://github.com/llvm/llvm-project/commit/ae2104897c7d9f887c415b07fb2662486082b248
Author: James Y Knight <jyknight at google.com>
Date: 2025-07-01 (Tue, 01 Jul 2025)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/test/CodeGen/X86/dag-combiner-fma-folding.ll
Log Message:
-----------
[SelectionDAG] Fix NaN regression in fma dag-combine. (#146592)
After 901e1390c9778a191256335d37802bc631c2d183 (#127770), the DAG
combine would transform `fma(x, 0.0, 1.0)` into `1.0` if
`-fp-contract=fast` was enabled, in addition to when 'x' is marked
nnan/ninf.
It's only valid in the latter case, not the former, so delete the extra
condition.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list