diff options
author | Vedant Paranjape <vedantparanjape160201@gmail.com> | 2025-09-12 00:21:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-12 00:21:18 -0400 |
commit | 092de9bb90cbcee445b31e504a4c2a09ecf09714 (patch) | |
tree | d067ac708eb6925ed2d5b3d8e83a292dafcb55a9 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 30010f49ca4de03762a31202c82e9c763d4a8822 (diff) | |
download | llvm-092de9bb90cbcee445b31e504a4c2a09ecf09714.zip llvm-092de9bb90cbcee445b31e504a4c2a09ecf09714.tar.gz llvm-092de9bb90cbcee445b31e504a4c2a09ecf09714.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions