http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60026

--- Comment #7 from Martin Jambor <jamborm at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #6)
> Not so easily, the problem is that copy_forbidden is called without fun
> being actually cfun, and set_cfun is very expensive. 

I think we can do the test without setting cfun by something similar
to ipa_func_spec_opts_forbid_analysis_p in ipa-prop.c.

> Do we ever call
> copy_forbidden on functions that haven't been rewritten into SSA form yet? 
> If yes, it could be even set e.g. during gimplification (if (!optimize)).

No, I don't think so.  It's really a matter of cleanness and a fairly
minor point at that.

Reply via email to