[Bug tree-optimization/108520] [13 Regression] ICE in nonnull_arg_p, at tree.cc:14372 with -O1 and above (gnu::assume and gnu::nonnull)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 26 13:30:42 GMT 2023
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".
More information about the Gcc-bugs
mailing list