This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Speedup DOM and tree-cfg a lot (partial of PR 15524)
- From: Eric Christopher <echristo at redhat dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 18 May 2004 19:12:29 -0700
- Subject: Re: [PATCH] Speedup DOM and tree-cfg a lot (partial of PR 15524)
- References: <A751B47A-A920-11D8-A4A1-000393A6D2F2@physics.uc.edu>
>
> 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>