[llvm] AMDGPU: Check aligned vgpr feature in assembler (PR #156997)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 4 18:31:55 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Matt Arsenault (arsenm)
<details>
<summary>Changes</summary>
Use the new feature instead of listing the two separate cases.
---
Full diff: https://github.com/llvm/llvm-project/pull/156997.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp (+1-1)
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp b/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
index fc46f2b6e93dd..2ce1e9e410b23 100644
--- a/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+++ b/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
@@ -5234,7 +5234,7 @@ bool AMDGPUAsmParser::validateAGPRLdSt(const MCInst &Inst) const {
bool AMDGPUAsmParser::validateVGPRAlign(const MCInst &Inst) const {
auto FB = getFeatureBits();
- if (!FB[AMDGPU::FeatureGFX90AInsts] && !FB[AMDGPU::FeatureGFX1250Insts])
+ if (!FB[AMDGPU::FeatureRequiresAlignedVGPRs])
return true;
unsigned Opc = Inst.getOpcode();
``````````
</details>
https://github.com/llvm/llvm-project/pull/156997
More information about the llvm-commits
mailing list