[clang] [flang] [llvm] [AMDGPU] Add "lds-buffer-load-insts" attribute for all targets < gfx11 (PR #133055)
    Juan Manuel Martinez CaamaƱo via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Mar 26 04:11:39 PDT 2025
    
    
  
================
@@ -3368,7 +3368,8 @@ bool AMDGPUInstructionSelector::selectG_INSERT_VECTOR_ELT(
 }
 
 bool AMDGPUInstructionSelector::selectBufferLoadLds(MachineInstr &MI) const {
-  assert(!AMDGPU::isGFX12Plus(STI));
+  if (!Subtarget->hasLDSBufferLoad())
----------------
jmmartinez wrote:
Thanks for this remark ! I've added one test for this (inspired from `llvm.fptrunc.round.err.ll`).
https://github.com/llvm/llvm-project/pull/133055
    
    
More information about the llvm-commits
mailing list