[PATCH] D142828: [ValueTracking] Add cases for additional ops in `isKnownNonZero`

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 28 20:58:04 PST 2023


goldstein.w.n created this revision.
Herald added a subscriber: 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.

Add cases for the following ops:

- 0-X            -- https://alive2.llvm.org/ce/z/6C75Li
- bitreverse(X)  -- https://alive2.llvm.org/ce/z/SGG1q9
- bswap(X)       -- https://alive2.llvm.org/ce/z/p7pzwh
- ctpop(X)       -- https://alive2.llvm.org/ce/z/c5y3BC
- abs(X)         -- https://alive2.llvm.org/ce/z/yxXGz_ https://alive2.llvm.org/ce/z/rSRg4K
- uadd_sat(X, Y) -- https://alive2.llvm.org/ce/z/Zw-y4W https://alive2.llvm.org/ce/z/2NRqRz https://alive2.llvm.org/ce/z/M1OpF8


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142828

Files:
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/test/Analysis/ValueTracking/known-non-zero.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142828.493061.patch
Type: text/x-patch
Size: 5076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230129/79e8fab2/attachment.bin>


More information about the llvm-commits mailing list