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: [RFC] Do pointer comparison first in operand_equal_p


On Fri, 2005-05-13 at 11:00 -0400, Diego Novillo wrote:
> This patch implements what I asked in
> http://gcc.gnu.org/ml/gcc/2005-05/msg00601.html.
> 
> The time savings are negligible but measurable in the tree passes
> (saves about 1% of compile time in the tree optimizers).
> 
> Bootstrapped and tested x86, x86_64, ia64 and ppc64.
> 
> Jeff had some doubts about the approach.  Roger, what do you
> think?  Any reason why this would be unsafe in general?
> 
> 
> Thanks.  Diego.
> 
> 
> 	* fold-const.c (operand_equal_p): Do pointer comparison first
> 	for operands with no side effects.
I think it's OK.  

jeff



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