This is the mail archive of the gcc@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: performance regression: inlining with constant arguments


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)


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