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: 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.


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