[PATCH] D97305: [InstSimplify] Handle nsw shl -> poison patterns

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 23 09:34:58 PST 2021


RKSimon created this revision.
RKSimon added reviewers: spatel, nikic, nlopes, lebedev.ri.
Herald added a subscriber: hiraditya.
RKSimon requested review of this revision.
Herald added a project: LLVM.

Pulled out from D90479 <https://reviews.llvm.org/D90479> - this recognises invalid nsw shl patterns with signbit changes that result in poison.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97305

Files:
  llvm/lib/Analysis/InstructionSimplify.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: D97305.325822.patch
Type: text/x-patch
Size: 4670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210223/2fcc9638/attachment.bin>


More information about the llvm-commits mailing list