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: [PATCH] Speedup DOM and tree-cfg a lot (partial of PR 15524)


> 
> OK? Bootstrapped on powerpc-apple-darwin with no regressions.
> 

> -	  if (simple_cst_equal (CASE_LOW (t), val) == 1)
> +	  if (tree_int_cst_compare (CASE_LOW (t), val) == 0)
>   	    return t;

I don't see how this can be much faster if at all. I've talked to Andrew
about it and he's doing a timing. If it does turn out to be noticeably
faster then perhaps we'll want to comment it with something like:

/* Compare for equal using tree_int_cst_compare since these
   are only ever INTEGER_CST.  */

or something?

-eric 

-- 
Eric Christopher <echristo@redhat.com>


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