https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108520
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldyh at gcc dot gnu.org,
| |amacleod at redhat dot com,
| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So, unless nothing in the ranger uses cfun but passes around struct function
*fun
on which it should operate, I think gimple_infer_range::check_assume_func needs
to
temporarily set_cfun to fun and switch it back later.
Generally set_cfun is fairly expensive, but for the assumption functions one
would hope that at least in most cases they have the same optimization and
target nodes as the "caller".