This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Rewrite convert_nontype_argument
Richard Henderson wrote:
On Tue, Jul 20, 2004 at 01:33:45PM -0700, Mark Mitchell wrote:
In the middle-end, yes. Here, we know that "fold" will never help us,
though.
Using something named "build_nop" will be unfortunate, however,
when someone gets around to cleaning up NOP_EXPR vs CONVERT_EXPR.
Yeah, the name might need changing.
I really don't think the overhead of fold_convert is high enough
to warrent not using it.
Could well be. I do think someone should measure first, though. There
look to be some code paths through fold_convert that involve making
calls back to types_compatible_p, which has been showing up in my
profiling as not insignificant.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com