[PATCH] D156633: [InstSimplify] Add some basic simplifications for `llvm.ptrmask`

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


goldstein.w.n created this revision.
goldstein.w.n added reviewers: nikic, RKSimon.
Herald added subscribers: StephenFan, kerbowa, hiraditya, arichardson, jvesely.
Herald added a project: All.
goldstein.w.n requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Mostly the same as `and`. We also have a check for a useless
`llvm.ptrmask` if the ptr is already known aligned.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156633

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/test/Transforms/InferAddressSpaces/AMDGPU/ptrmask.ll
  llvm/test/Transforms/InstCombine/align-addr.ll
  llvm/test/Transforms/InstSimplify/ptrmask.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156633.545477.patch
Type: text/x-patch
Size: 9117 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230730/a7973319/attachment.bin>


More information about the llvm-commits mailing list