We have no logic to promote alloca to vector for an AddrSpaceCast instruction.
Details
Details
Diff Detail
Diff Detail
Event Timeline
test/CodeGen/AMDGPU/vector-alloca-addrspacecast.ll | ||
---|---|---|
26 | address space 4 is constant address space. Do you intend to cast %tmp to generic address space? If so, you should use the default address space (0) since that is generic address space. |
Comment Actions
Fix addrspacecast in the test since generic address space is 0 (default) now. Thanks, Sam!
Comment Actions
Update the test:
- correct a few wrong checking;
- Remove the -amdgiz from the triple since it is no longer necessary;
- Add "-data-layout=A5" to explicitly specify the data layout for address space 5 for alloca
- and to remove the "target:" line for the same data layout purpose.
address space 4 is constant address space. Do you intend to cast %tmp to generic address space? If so, you should use the default address space (0) since that is generic address space.