[llvm] [AMDGPU] Support merging 16-bit TBUFFER load/store instruction (PR #145078)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 25 20:46:21 PDT 2025
================
@@ -839,8 +839,15 @@ void SILoadStoreOptimizer::CombineInfo::setMI(MachineBasicBlock::iterator MI,
Offset = I->getOperand(OffsetIdx).getImm();
}
- if (InstClass == TBUFFER_LOAD || InstClass == TBUFFER_STORE)
+ if (InstClass == TBUFFER_LOAD || InstClass == TBUFFER_STORE) {
Format = LSO.TII->getNamedOperand(*I, AMDGPU::OpName::format)->getImm();
+ const auto *Info = AMDGPU::getGcnBufferFormatInfo(Format, *LSO.STM);
----------------
shiltian wrote:
no auto
https://github.com/llvm/llvm-project/pull/145078
More information about the llvm-commits
mailing list