RA can insert something like a sub1_sub2 COPY of a wide VGPR
tuple which results in the unaligned acces with v_pk_mov_b32
after the copy is expanded. This is regression after D97316.
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Event Timeline
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp | ||
---|---|---|
915–918 | I.e. I do not see an easy way to check an RC is aligned. |
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp | ||
---|---|---|
915–918 | Probably should add a utility function to check this. The verifier has a similarly confusing check here: if (!RC || ((IsVGPR && !RC->hasSuperClassEq(RI.getVGPRClassForBitWidth( RI.getRegSizeInBits(*RC)))) || |
clang-format: please reformat the code