https://gcc.gnu.org/g:183f71ca629b737344c2818700423ec65a4ad3a3

commit 183f71ca629b737344c2818700423ec65a4ad3a3
Author: Andrew Stubbs <[email protected]>
Date:   Fri Oct 16 14:53:17 2026 +0000

    fixup! openacc: Adjust loop lowering for AMD GCN
    
    Fix the case where the backend does define the hook, but SIMT still isn't
    enabled.

Diff:
---
 gcc/omp-offload.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/omp-offload.cc b/gcc/omp-offload.cc
index 7ef3fabe4211..7010fb863f9e 100644
--- a/gcc/omp-offload.cc
+++ b/gcc/omp-offload.cc
@@ -928,7 +928,8 @@ oacc_xform_loop (gcall *call)
     }
 
   if (!chunking
-      && !targetm.simt.vf
+      && (!targetm.simt.vf
+         || targetm.simt.vf () == 1)
       && (mask & GOMP_DIM_MASK (GOMP_DIM_VECTOR)))
     {
       poly_uint64 max_vf = omp_max_vf (false);

Reply via email to