[PATCH] D121483: [FPEnv][InstSimplify] Teach CannotBeNegativeZero() about constrained intrinsics.

Kevin P. Neal via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 11 11:46:39 PST 2022


kpn created this revision.
kpn added reviewers: spatel, scanon, nlopes.
Herald added a subscriber: hiraditya.
Herald added a project: All.
kpn requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Currently some optimizations are disabled because llvm::CannotBeNegativeZero() does not know how to deal with the constrained intrinsics. This patch fixes that by extending the existing implementation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121483

Files:
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/test/Transforms/InstSimplify/strictfp-fsub.ll
  llvm/test/Transforms/InstSimplify/strictfp-sqrt-nonneg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121483.414717.patch
Type: text/x-patch
Size: 20522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220311/1250fcaf/attachment.bin>


More information about the llvm-commits mailing list