[PATCH] D59065: [BasicAA] Simplify inttoptr(and(ptrtoint(X), C)) to X, if C preserves all significant bits.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 02:35:51 PDT 2019


fhahn updated this revision to Diff 198607.
fhahn added a comment.
Herald added a subscriber: javed.absar.

I went with adding a pointer-mask intrinsic, as suggested.

Updated this patch to add the intrinsic and I will soon post a follow up
supporting it in getUnderlyingObject.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D59065

Files:
  llvm/docs/LangRef.rst
  llvm/include/llvm/IR/Intrinsics.td
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/test/CodeGen/AArch64/lower-ptrmask.ll
  llvm/test/CodeGen/X86/lower-ptrmask.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59065.198607.patch
Type: text/x-patch
Size: 5625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190508/a1362d71/attachment.bin>


More information about the llvm-commits mailing list