Skip to content

Commit 6bccd96

Browse files
authored
[AMDGPU] Do not assert on non-zero COMPUTE_PGM_RSRC3 on gfx1250. NFCI (#155498)
COMPUTE_PGM_RSRC3 does exist on gfx1250, we are just not using it yet.
1 parent 0a8acd2 commit 6bccd96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ AMDGPUAsmPrinter::getAmdhsaKernelDescriptor(const MachineFunction &MF,
638638
(void)PGRM_Rsrc3;
639639
(void)EvaluatableRsrc3;
640640
assert(STM.getGeneration() >= AMDGPUSubtarget::GFX10 ||
641-
STM.hasGFX90AInsts() || !EvaluatableRsrc3 ||
641+
STM.hasGFX90AInsts() || AMDGPU::isGFX1250(STM) || !EvaluatableRsrc3 ||
642642
static_cast<uint64_t>(PGRM_Rsrc3) == 0);
643643
KernelDescriptor.compute_pgm_rsrc3 = CurrentProgramInfo.ComputePGMRSrc3;
644644

@@ -845,7 +845,7 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
845845

846846
[[maybe_unused]] int64_t PGMRSrc3;
847847
assert(STM.getGeneration() >= AMDGPUSubtarget::GFX10 ||
848-
STM.hasGFX90AInsts() ||
848+
STM.hasGFX90AInsts() || AMDGPU::isGFX1250(STM) ||
849849
(CurrentProgramInfo.ComputePGMRSrc3->evaluateAsAbsolute(PGMRSrc3) &&
850850
static_cast<uint64_t>(PGMRSrc3) == 0));
851851
if (STM.hasGFX90AInsts()) {

0 commit comments

Comments
 (0)