https://gcc.gnu.org/g:55df53bdca3e677e2a3ec9b5cdea3ecd99676ed5
commit 55df53bdca3e677e2a3ec9b5cdea3ecd99676ed5 Author: Andrew Stubbs <[email protected]> Date: Tue Nov 10 09:49:58 2026 +0000 Revert "libgomp, amdgcn: rework team_malloc for SIMT mode" This reverts commit 7a3b919608f933b702ca462874e069e582d16994. Diff: --- libgomp/libgomp.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h index 7a780c96c9b1..ecb3fcaababa 100644 --- a/libgomp/libgomp.h +++ b/libgomp/libgomp.h @@ -131,16 +131,8 @@ team_malloc (size_t size) /* Allocate directly from the arena. The compiler does not support DS atomics, yet. */ void *result; -#ifndef __SIMT__ asm ("ds_add_rtn_u64 %0, %1, %2\n\ts_waitcnt 0" : "=v"(result) : "v"(TEAM_ARENA_FREE), "v"(size), "e"(1L) : "memory"); -#else - /* SIMT should not touch EXEC. - FIXME: this will allocate SIZE bytes for each active thread... is that - what we want to happen? Usually, only one will be active here. */ - asm ("ds_add_rtn_u64 %0, %1, %2\n\ts_waitcnt 0" - : "=v"(result) : "v"(TEAM_ARENA_FREE), "v"(size) : "memory"); -#endif /* Handle OOM. */ if (result + size > *(void * __lds *)TEAM_ARENA_END)
