Just do not touch loads and stores which are already vector.
Previously pass was just unable to see these loads and stores
because these were hidden bitcasts.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Added two more tests.
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp | ||
---|---|---|
489–491 | Array is fine. I am adding a test. | |
llvm/test/CodeGen/AMDGPU/vector-alloca-bitcast.ll | ||
363 | Loads and stores which are already vector skipped by this patch (smaller vector included). |
isAggregateType might be safer?