[llvm] [AMDGPU] Enable volatile and non-temporal for loads to LDS (PR #153244)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 20 06:01:35 PDT 2025
================
@@ -3662,13 +3666,19 @@ bool AMDGPUInstructionSelector::selectGlobalLoadLds(MachineInstr &MI) const{
if (isSGPR(Addr))
MIB.addReg(VOffset);
- MIB.add(MI.getOperand(4)) // offset
- .add(MI.getOperand(5)); // cpol
+ MIB.add(MI.getOperand(4)); // offset
+
+ bool IsGFX12Plus = AMDGPU::isGFX12Plus(*Subtarget);
----------------
arsenm wrote:
```suggestion
bool IsGFX12Plus = Subtarget->getGeneration() >= AMDGPUSubtarget::GFX12;
```
Should go through later and purge all of these AMDGPU::isGFX12Plus uses
https://github.com/llvm/llvm-project/pull/153244
More information about the llvm-commits
mailing list