[PATCH] D118928: [FPEnv][InstSimplify] Fold fsub X, +0 ==> X

Kevin P. Neal via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 10 10:15:08 PST 2022


kpn updated this revision to Diff 407595.
kpn added a comment.

Update for review comments: don't fold away a case that can and should result in -0.0. Add tests for this very case.


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

https://reviews.llvm.org/D118928

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/test/Transforms/InstSimplify/strictfp-fsub.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118928.407595.patch
Type: text/x-patch
Size: 4487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220210/f63c8d80/attachment.bin>


More information about the llvm-commits mailing list