[PATCH] D148858: ValueTracking: Replace CannotBeNegativeZero

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 20 16:52:04 PDT 2023


arsenm created this revision.
arsenm added reviewers: jcranmer-intel, foad, kpn, andrew.w.kaylor, sepavloff.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

This is now just a wrapper around computeKnownFPClass. It
mishandles PreserveSign denormal inputs but that's a preexisting
issue.

strictfp tests are improvements. The test comment suggests these
folds should not happen, but I think are correct.


https://reviews.llvm.org/D148858

Files:
  llvm/include/llvm/Analysis/ValueTracking.h
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/test/Transforms/InstSimplify/strictfp-sqrt-nonneg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148858.515531.patch
Type: text/x-patch
Size: 17112 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230420/12dd9d1a/attachment.bin>


More information about the llvm-commits mailing list