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: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Jun 2012 10:08:13 +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
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
CC| |jamborm at gcc dot gnu.org
Component|lto |tree-optimization
Summary|Possible lto improvement |Possible IPA-SRA / IPA-CP
| |improvement
--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-28 10:08:13 UTC ---
This has nothing to do with LTO - with a single compilation unit you can
use -fwhole-program. The issue is that Fortran passes parameters by reference
and our interprocedural constant-propagation pass does not know how to deal
with that. The IPA SRA pass which is supposed to "fix" that decides that
init cannot have its signature changed. Martin, can you check why?
I think we ought to optimize this with -O3 -fwhole-program -fno-inline.