This is the mail archive of the
mailing list for the GCC project.
Re: intermodule optimisation patch
- From: Geoffrey Keating <geoffk at apple dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Chris Lattner <sabre at nondot dot org>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 20 May 2003 15:00:01 -0700
- Subject: Re: intermodule optimisation patch
On Tuesday, May 20, 2003, at 02:40 PM, Richard Henderson wrote:
On Mon, May 19, 2003 at 04:59:39PM -0500, Chris Lattner wrote:
But what happens if you modify one of the source
files? With your approach you have to recompile and reoptimize the
program. With my approach you need to redo only the interprocedural
optimizations and code generation phases.
Eh? "Only" the interprocedural optimizations?
Given that information should be used during the high-level
optimization phases (in particular for noticing what memory
is read/written by a function), this does in fact mean
starting over from near-scratch. The only thing you get to
skip is parsing and semantic analysis, which ought to be
near the bottom of the profile during optimization anyway.
For those cases when parsing *isn't* near the bottom of the profile,
it's most likely due to header files, and one plan (this is part of
Per's idea that he'll be presenting at the conference) is to re-use
information from previous parsings of header files to reduce compile
Geoff Keating <email@example.com>