[PATCH] D81938: [InferAddressSpaces] Handle the pair of `ptrtoint`/`inttoptr`.

Michael Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 17 19:58:50 PDT 2020


hliao updated this revision to Diff 271551.
hliao added a comment.

Add TTI hooks to double-check that address space casting is no-op.

NOTE: This change depends on
- https://reviews.llvm.org/D82025 (exposing `isNoopAddrSpaceCast` from TLI into TTI) to be compiled.
- https://reviews.llvm.org/D81943 (enhance SROA to handle no-op address space casting) to pass all testing.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81938

Files:
  clang/test/CodeGenCUDA/amdgpu-kernel-arg-pointer-type.cu
  llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
  llvm/test/Transforms/InferAddressSpaces/noop-ptrint-pair.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81938.271551.patch
Type: text/x-patch
Size: 15359 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200618/47f1339a/attachment.bin>


More information about the llvm-commits mailing list