This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: performance regression: inlining with constant arguments
- From: Kelley Cook <kelley dot r dot cook at gm dot com>
- To: gcc at gcc dot gnu dot org, Michel LESPINASSE <walken at zoy dot org>
- Date: Mon, 17 Jun 2002 16:58:59 -0400
- Subject: Re: performance regression: inlining with constant arguments
- References: <20020617094558.GG22611@zoy.org>
Although I agree with your assesment that gcc 3.1 should still determine that
"cpu" is unchanging on its own, your code will do what you wish if if you simply
replace:
static inline void MC_avg1_8 (int height, char * dest, char * ref, int stride,
int cpu)
with
static inline void MC_avg1_8 (int height, char * dest, char * ref, int stride,
const int cpu)