RE: g++ std::max() performance

2007-09-08 Thread Hicham Mouline
ember 2007 16:38 To: Hicham Mouline Cc: gcc@gcc.gnu.org Subject: Re: g++ std::max() performance Hicham Mouline wrote: >Can anyone else observe this? > > You are observing it on gcc4.2.x or gcc4.1.x, right? Because mainline (would be 4.3.0) is able to optimize both exactly to the same tree

Re: g++ std::max() performance

2007-09-08 Thread Paolo Carlini
Hicham Mouline wrote: Can anyone else observe this? You are observing it on gcc4.2.x or gcc4.1.x, right? Because mainline (would be 4.3.0) is able to optimize both exactly to the same tree. Actually, should be one of the very few compilers around implementing that optimization ;) See PRs t