llvm-project
092de9bb - [InstCombine] Enable FAdd simplifications when user can ignore sign bit (#157757)

Commit
220 days ago
[InstCombine] Enable FAdd simplifications when user can ignore sign bit (#157757) When FAdd result is used by fabs, we can safely ignore the sign bit of fp zero. This patch enables an instruction simplification optimization that folds fadd x, 0 ==> x, which would otherwise not work as the compiler cannot prove that the zero isn't -0. But if the result of the fadd is used by fabs we can simply ignore this and still do the optimization. Fixes #154238
Parents
Loading