InferAddressSpaces assumes the pointee type of addrspacecast
is the same as the operand, which is not always true and causes
invalid IR.
This bug cause build failure in HCC.
This patch fixes that.
Paths
| Differential D39432
InferAddressSpaces: Fix bug about replacing addrspacecast ClosedPublic Authored by yaxunl on Oct 30 2017, 1:53 PM.
Details Summary InferAddressSpaces assumes the pointee type of addrspacecast This bug cause build failure in HCC. This patch fixes that.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 30 2017, 2:01 PM Closed by commit rL316957: InferAddressSpaces: Fix bug about replacing addrspacecast (authored by yaxunl). · Explain WhyOct 30 2017, 2:20 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 120888 llvm/trunk/lib/Transforms/Scalar/InferAddressSpaces.cpp
llvm/trunk/test/Transforms/InferAddressSpaces/AMDGPU/infer-addrspacecast.ll
|