[PATCH] D90479: [ValueTracking] ComputeKnownBits - minimum leading/trailing zero bits in LSHR/SHL (PR44526)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 22 13:55:00 PST 2021


RKSimon updated this revision to Diff 325558.
RKSimon marked an inline comment as not done.
RKSimon edited the summary of this revision.
RKSimon added a comment.
Herald added a subscriber: dexonsmith.

KnownBits::shl - combine all possible shifted combinations if both min/max shift amount values are in range - helps find some additional poision cases and prevents another regression due to ValueTracking clearing all KnownBits for poison shifts.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90479

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/Support/KnownBits.cpp
  llvm/test/Transforms/InstCombine/known-signbit-shift.ll
  llvm/test/Transforms/InstSimplify/icmp-constant.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90479.325558.patch
Type: text/x-patch
Size: 8882 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210222/635c9017/attachment.bin>


More information about the llvm-commits mailing list