[AMDGPU] Fixed promote alloca with ptr/int casts
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 10 Jun 2020 18:22:59 +0000 (11:22 -0700)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 10 Jun 2020 18:46:57 +0000 (11:46 -0700)
commit6e1eee6034f7220f170cb78b8a1334cff2b8b911
tree39ee6300b5ec8817b5fd2f7a0cef8acbd8b6f135
parent6adc664b9dfecba0d9bff7a51395a67aaadac9d3
[AMDGPU] Fixed promote alloca with ptr/int casts

There is an invalid cast produced when a pointee is a pointer
and the alloca type is cast to a pointer to int.

Differential Revision: https://reviews.llvm.org/D81606
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
llvm/test/CodeGen/AMDGPU/promote-alloca-pointer-array.ll [new file with mode: 0644]