Also skips the propagation if alignment is 1.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp | ||
---|---|---|
352–353 | You look through bitcasts, so "Ptr" does not necessarily have pointer type, so you really do need this check. |
llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp | ||
---|---|---|
352–353 | A bitcast cannot convert pointer to a non-pointer, and I am not handling ptrtoint. |
llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp | ||
---|---|---|
352–353 | OK sorry, I missed that detail. |
You look through bitcasts, so "Ptr" does not necessarily have pointer type, so you really do need this check.