[llvm] [AMDGPU] Add FeatureLDSBankCount64 for gfx12.5 (PR #219063)

Chinmay Deshpande via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 19:04:55 PDT 2026


chinmaydd wrote:

Thanks for all the opinions. I'd like to engage on this a bit more.

I was incorrect earlier that the information isnt "used" anywhere.

It is used in [AMDGPUISelDAGToDAG](https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp#L3208). On 16-bank LDS targets, `V_INTERP_P1LL_F16` is unavailable (it requires has32BankLDS), so the intrinsic `amdgcn_interp_p1_f16` must be lowered as `V_INTERP_MOV_F32 + V_INTERP_P1LV_F16` instead of a single pattern-matched instruction.

There's also use for `has32BankLDS` for similar purposes: [1](https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AMDGPU/SIInstructions.td#L54), [2](https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AMDGPU/VOP3Instructions.td#L496)

I think we could remove this and hardcode these values but I believe keeping it around will be beneficial.

https://github.com/llvm/llvm-project/pull/219063


More information about the llvm-commits mailing list