Also "fix" the longstanding bug where the computed size depends on the
order of the visitation. We could try to predict the allocation order
used by legalization, but it would never be 100% perfect. Until we
start fixing the addresses somehow (or have a more reliable allocation
scheme later), just try to compute the size based on the worst case
padding.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM with a nit.
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp | ||
---|---|---|
808 | Could use llvm::sort instead. |
Could use llvm::sort instead.