This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Optimize nonoptimizing compilation IV


Jan Hubicka <jh at suse dot cz> writes:

> Hi,
> this patch avoids optimize_mode_swithcing when no instructions needing
> it are present in the insn stream.  It saves 7% out of insn-attrtab
> build time at -O0.  Together with the tidy_fallthru_eges we are already
> faster than gcc-3.0 (and with this patch only we are faster than
> gcc-3.2)

This is OK.

Please consider making OPTIMIZE_MODE_SWITCHING() into a target hook as
a followup patch.  This needs to be done with caution, since I see
there is quite a lot of code #ifdef-ed out when OPTIMIZE_MODE_SWITCHING 
is not defined, which is true for almost all targets.  But we do want
to be going in the direction of being able to swap back-ends in and
out at run time, so...

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]