[PATCH] D156637: [InstCombine] Implement `SimplifyDemandedBits` for `llvm.ptrmask`

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 30 16:01:26 PDT 2023


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

Logic basically copies 'and' but we can't return a constant if the
result == `rhs` (mask) so that case is skipped.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156637

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  llvm/test/Transforms/InstCombine/align-addr.ll
  llvm/test/Transforms/InstCombine/consecutive-ptrmask.ll
  llvm/test/Transforms/InstCombine/ptrmask.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156637.545481.patch
Type: text/x-patch
Size: 7442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230730/8f19e901/attachment.bin>


More information about the llvm-commits mailing list