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

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 05:27:24 PDT 2022


spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.

It would be good to refactor `foldSelectIntoOp()` with a lambda as a preliminary cleanup, so we don't have to duplicate the code. 
But this is an improvement even without that, so LGTM.


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

https://reviews.llvm.org/D126774



More information about the llvm-commits mailing list