OSDN Git Service

R600: Don't promote allocas when one of the users is a ptrtoint instruction
authorTom Stellard <thomas.stellard@amd.com>
Fri, 31 Oct 2014 20:52:04 +0000 (20:52 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 31 Oct 2014 20:52:04 +0000 (20:52 +0000)
commitb5c86504a06576e1fd542ee873042fbd307840ea
tree3e5b0e4aad1db03534a07c8d14731c60d7de8bf8
parent5d6cee5e65d60ad73d067254a7773368e32619f4
R600: Don't promote allocas when one of the users is a ptrtoint instruction

We need to figure out how to track ptrtoint values all the
way until result is converted back to a pointer in order
to correctly rewrite the pointer type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220997 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUPromoteAlloca.cpp
test/CodeGen/R600/private-memory.ll