This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/53787] Possible IPA-SRA / IPA-CP improvement
- From: "jamborm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Jul 2012 09:34:41 +0000
- Subject: [Bug tree-optimization/53787] Possible IPA-SRA / IPA-CP improvement
- Auto-submitted: auto-generated
- References: <bug-53787-4@http.gcc.gnu.org/bugzilla/>
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.