[all-commits] [llvm/llvm-project] dccfaa: [InferAddressSpaces] Handle the pair of `ptrtoint`...
darkbuck via All-commits
all-commits at lists.llvm.org
Thu Jun 25 17:47:38 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: dccfaacf93e1c4801cbcc4686f64eb8a35564ff7
https://github.com/llvm/llvm-project/commit/dccfaacf93e1c4801cbcc4686f64eb8a35564ff7
Author: Michael Liao <michael.hliao at gmail.com>
Date: 2020-06-25 (Thu, 25 Jun 2020)
Changed paths:
M clang/test/CodeGenCUDA/amdgpu-kernel-arg-pointer-type.cu
M llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
A llvm/test/Transforms/InferAddressSpaces/AMDGPU/noop-ptrint-pair.ll
Log Message:
-----------
[InferAddressSpaces] Handle the pair of `ptrtoint`/`inttoptr`.
Summary:
- `ptrtoint` and `inttoptr` are defined as no-op casts if the integer
value as the same size as the pointer value. The pair of
`ptrtoint`/`inttoptr` is in fact a no-op cast sequence between
different address spaces. Teach `infer-address-spaces` to handle them
like a `bitcast`.
Reviewers: arsenm, chandlerc
Subscribers: jvesely, wdng, nhaehnle, hiraditya, kerbowa, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D81938
More information about the All-commits
mailing list