]> git.ipfire.org Git - thirdparty/gcc.git/commit
amdgcn: Don't double-count AVGPRs
authorAndrew Stubbs <ams@codesourcery.com>
Wed, 3 Jan 2024 16:18:43 +0000 (16:18 +0000)
committerAndrew Stubbs <ams@codesourcery.com>
Mon, 8 Jan 2024 09:57:09 +0000 (09:57 +0000)
commitc5c3aab38132ea34dc1ee69d93fded787e6ac7a4
tree1aa6ace919a27d86fa86426c0d78b1b454264a05
parent4d31d6606201b339825c370c2e1969b2dcd17f39
amdgcn: Don't double-count AVGPRs

CDNA2 devices have VGPRs and AVGPRs combined into a single hardware register
file (they're seperate in CDNA1).  I originally thought they were counted
separately in the vgpr_count and agpr_count metadata fields, and therefore
mkoffload had to account for this when passing the values to libgomp.  However,
that wasn't the case, and this code should have been removed when I corrected
the calculations in gcn.cc.  Fixing the error now.

gcc/ChangeLog:

* config/gcn/mkoffload.cc (isa_has_combined_avgprs): Delete.
(process_asm): Don't count avgprs.
gcc/config/gcn/mkoffload.cc