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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Before IPA, we should be able to optimize away variables even if they are
marked declare target to, as long as we optimize them away completely (i.e.
neither the offloaded code nor host code will refer to them in any way), which
suggests that perhaps we should be populating the variable and function tables
for offloading later than we do now (basically immediately before IPA), but
also once we enter something into the tables, we should mark those as being
used such that e.g. IPA passes or anything later will not really optimize them
away.

Reply via email to