This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Adjust STRIP_USELESS_TYPE_CONVERSION
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: pinskia at physics dot uc dot edu
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 3 Jul 04 16:29:27 EDT
- Subject: Re: Adjust STRIP_USELESS_TYPE_CONVERSION
Why remove the call to STRIP_MAIN_TYPE_NOPS, it is cheaper than the
calling STRIP_MAIN_TYPE_NOPS alone in the common case where
VIEW_CONVERT_EXPRs are not there?
The issue isn't VIEW_CONVERT_EXPR, but that STRIP_USELESS_TYPE_CONVERSION
strips more conversions than STRIP_MAIN_TYPE_NOPS. And since it's going to
be called anyway, why call the first one: it's redundant.