[PATCH] D156777: [SelectionDAG] Add/Improve cases in `isKnownNeverZero`

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 1 00:33:58 PDT 2023

goldstein.w.n created this revision.
goldstein.w.n added reviewers: RKSimon, pengfei.
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.

1. Handle casts a bit more cleanly just with a loop rather than with recursion.

2. Add additional cases for smin/smax

3 ) For shifts we can also deduce non-zero if the maximum shift amount

  on the known 1s is non-zero.

  rG LLVM Github Monorepo



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156777.545941.patch
Type: text/x-patch
Size: 4124 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230801/4a90e8d6/attachment.bin>

More information about the llvm-commits mailing list