llvm-project
18d1ed0c - [Reassociate] Improve handling of fadd/fmul pairs (#218675)

Commit
20 hours ago
[Reassociate] Improve handling of fadd/fmul pairs (#218675) Currently fadd/fmul pairs are treated as leaf nodes in order to preserve pairs of instructions likely to result in FMA generation. However, doing this unconditionally can prevent reassociation of deeper expression trees. This commit fixes that by preserving an fadd/fmul pair as a leaf only when the other operand of the fadd is not itself a reassociable fadd expression.
Author
Parents
Loading