[PATCH] D150102: [KnownBits] Add implementations for saturating add/sub functions

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 7 23:59:19 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.

These where previously missing. Even in the case where overflow is
indeterminate we can still deduce some of the low/high bits.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150102

Files:
  llvm/include/llvm/Support/KnownBits.h
  llvm/lib/Support/KnownBits.cpp
  llvm/unittests/Support/KnownBitsTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150102.520278.patch
Type: text/x-patch
Size: 8797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230508/a81de6f8/attachment.bin>


More information about the llvm-commits mailing list