[PATCH] D151208: [KnownBits] Add support for nuw/nsw on shifts

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 23 06:17:57 PDT 2023


nikic created this revision.
nikic added reviewers: foad, goldstein.w.n, RKSimon.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
nikic requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.

Implement precise nuw/nsw support in the KnownBits implementation, replacing the rather crude handling in ValueTracking.


https://reviews.llvm.org/D151208

Files:
  llvm/include/llvm/Support/KnownBits.h
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/Support/KnownBits.cpp
  llvm/test/Transforms/ConstraintElimination/geps-unsigned-predicates.ll
  llvm/test/Transforms/LoopVectorize/AArch64/sve-interleaved-accesses.ll
  llvm/unittests/Support/KnownBitsTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151208.524677.patch
Type: text/x-patch
Size: 8813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230523/9410fe34/attachment.bin>


More information about the llvm-commits mailing list