[PATCH] D126774: [InstCombine] Use +0.0 instead of -0.0 as the FP identity for some folds

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 6 07:54:03 PDT 2022


dmgreen added a comment.

Yeah - it's handled via tablegen patterns at the moment, from these:
https://github.com/llvm/llvm-project/blob/4fed5f174fa57c73907bb3344018a5f9c2bc2e68/llvm/lib/Target/ARM/ARMInstrMVE.td#L3774

And comes up from any float reduction I think, due to the way we specify the predicated reduction op in the loop:
https://godbolt.org/z/GjhhbKx9b


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126774/new/

https://reviews.llvm.org/D126774



More information about the llvm-commits mailing list