This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 0/5] OpenMP/PTX: improve correctness in SIMD regions


Hi,

Earlier Richard mentioned the possibility to special-case GOMP_SIMT_ENTER to
allow passing privatized variables to it by reference without making them
addressable.  I now see that such special-casing is already done for
IFN_ATOMIC_COMPARE_EXCHANGE in tree-ssa.c: execute_update_addresses_taken ().
If that's the only place in the compiler where such special casing needs to
happen, and the rest of the compiler already tolerates it, can we indeed do:

  void *simtrec = GOMP_SIMT_ENTER (&var1, &var2, ...);

  for (...) { ... }

  var1 ={v} {CLOBBER};
  var2 ={v} {CLOBBER};
  ... ;
  GOMP_SIMT_EXIT (simtrec, &var1, &var2, ...)'

Thanks.
Alexander


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]