[PATCH] D114962: [Support] improve known bits analysis for multiply with 1-bit op (bool)

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 3 09:33:14 PST 2021


spatel updated this revision to Diff 391659.
spatel added reviewers: rampitec, foad, arsenm.
spatel added a comment.
Herald added subscribers: kerbowa, nhaehnle, wdng, jvesely.

Patch updated:
Generalized to power-of-2 (one possibly set bit) and added tests to exercise.
This turned up a couple of AMDGPU codegen diffs because we use knownbits down there. Those look like improvements to me, but adding some more potential reviewers to confirm.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114962/new/

https://reviews.llvm.org/D114962

Files:
  llvm/lib/Support/KnownBits.cpp
  llvm/test/CodeGen/AMDGPU/sdiv64.ll
  llvm/test/CodeGen/AMDGPU/srem64.ll
  llvm/test/Transforms/InstCombine/icmp-mul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114962.391659.patch
Type: text/x-patch
Size: 8643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211203/c8f47e81/attachment.bin>


More information about the llvm-commits mailing list