https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118200

--- Comment #3 from prathamesh3492 at gcc dot gnu.org ---
Posted patch:
https://gcc.gnu.org/pipermail/gcc-patches/2024-December/672269.html

It simply skips processing of simduid if it's not default def (which AFAIU
indicates it's in SIMT region), and seems to fix the issue. I am assuming
that'd be OK (instead of walking SSA use-def chain to obtain default def and
corresponding simduid var) since SIMT region would be dead-code on host side ?
On nvptx side, the builtins get folded in ompdevlow pass itself.

Thanks,
Prathamesh

Reply via email to