This was checking the hardcoded address space 0 for the stack.
Additionally, this should be checking for legality with
the adjusted alignment, so defer the alignment check.
Also try to split if the unaligned access isn't allowed.
Paths
| Differential D52024
LSV: Fix adjust alloca alignment trick for AMDGPU ClosedPublic Authored by arsenm on Sep 13 2018, 4:23 AM.
Details
Diff Detail Event TimelineHerald added subscribers: t-tye, tpr, dstuttard and 5 others. · View Herald TranscriptSep 13 2018, 4:23 AM
This revision is now accepted and ready to land.Sep 13 2018, 6:13 AM
Revision Contents
Diff 165247 lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
test/Transforms/LoadStoreVectorizer/AMDGPU/adjust-alloca-alignment.ll
|
I guess this can result in increasing the alignment even if nothing is going to end up vectorized, but that's probably not that important