[AMDGPU] Replace getAllocatedType with getAllocationSize in PromoteAlloca (#179523)
Some progress towards using size-based APIs instead of unreliable
querying of alloca element types. The removal of the mis-accounting of
alignment to global variable size might have a minor functional impact
in edge cases where the overestimation of size used pushed it just over
the threshold to stop optimizing, and it wasn't already canonicalized by
an earlier pass.
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>