This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Speedup copy_reference_ops_from_ref
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 8 Dec 2010 15:13:28 +0000 (UTC)
- Subject: Re: [PATCH] Speedup copy_reference_ops_from_ref
- References: <alpine.LNX.2.00.1012081527120.23074@zhemvz.fhfr.qr>
On Wed, 8 Dec 2010, Richard Guenther wrote:
> + BITS_PER_UNIT == 8
> + ? 3 : exact_log2 (BITS_PER_UNIT),
I know we use this idiom elsewhere, but if we (i.e. 3.4-or-later host
compiler) aren't folding exact_log2 (BITS_PER_UNIT) to a constant (given
constant BITS_PER_UNIT) there's something wrong with either our constant
folding for built-in functions or our inlining heuristics.
--
Joseph S. Myers
joseph@codesourcery.com