[Bug tree-optimization/53787] Possible IPA-SRA / IPA-CP improvement

jamborm at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 27 09:35:00 GMT 2012


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

--- Comment #10 from Martin Jambor <jamborm at gcc dot gnu.org> 2012-07-27 09:34:41 UTC ---
(In reply to comment #9)
> Shouldn't IPA-CP be able to do this already? It does appear to handle
> CONST_DECLs already...

Only if it finds them in the call statement itself, it relies on early
constant propagation to get the constants there.  But (AFAIK) nothing
propagates (even scalar) constants through non-gimple-registers and n
is not a register because it has its address taken.



More information about the Gcc-bugs mailing list