[PATCH] D150103: [ValueTracking] Use `KnownBits` functions for `computeKnownBits` of saturating add/sub functions
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 7 23:59:32 PDT 2023
goldstein.w.n created this revision.
goldstein.w.n added reviewers: foad, nikic, RKSimon.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
goldstein.w.n requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The knownbits implementation covers all the cases previously handled
by `uadd.sat`/`usub.sat` as well some additional ones. We previously
were not handling the `ssub.sat`/`sadd.sat` cases at all.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D150103
Files:
llvm/lib/Analysis/ValueTracking.cpp
llvm/test/Analysis/ValueTracking/knownbits-sat-addsub.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150103.520279.patch
Type: text/x-patch
Size: 6959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230508/db838f23/attachment.bin>
More information about the llvm-commits
mailing list