diff --git a/llvm/lib/Target/AMDGPU/AMDGPU.td b/llvm/lib/Target/AMDGPU/AMDGPU.td --- a/llvm/lib/Target/AMDGPU/AMDGPU.td +++ b/llvm/lib/Target/AMDGPU/AMDGPU.td @@ -1329,8 +1329,6 @@ def AMDGPUInstrInfo : InstrInfo { let guessInstructionProperties = 1; - let noNamedPositionallyEncodedOperands = 1; - let useDeprecatedPositionallyEncodedOperands = 1; } def AMDGPUAsmParser : AsmParser { diff --git a/llvm/lib/Target/AMDGPU/BUFInstructions.td b/llvm/lib/Target/AMDGPU/BUFInstructions.td --- a/llvm/lib/Target/AMDGPU/BUFInstructions.td +++ b/llvm/lib/Target/AMDGPU/BUFInstructions.td @@ -337,7 +337,7 @@ // GFX90A+ only: instruction uses AccVGPR for data // Bit supersedes tfe. - bits<1> acc = !if(ps.has_vdata, vdata{9}, !if(ps.lds, ?, 0)); + bits<1> acc = !if(ps.has_vdata, vdata{9}, 0); } // For cache invalidation instructions. @@ -476,7 +476,7 @@ let Constraints = !if(HasTiedDest, "$vdata = $vdata_in", ""); let LGKM_CNT = isLds; - let has_vdata = !not(isLdsOpc); + let has_vdata = !not(!or(isLds, isLdsOpc)); let mayLoad = 1; let mayStore = isLds; let maybeAtomic = 1;