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: [PATCH] Handle read-only vars initialized to string literals in c_strlen


    > Why?  It seems to me that the lower-level we do such a check, the better.

    It is not a check, it is constant folding.  The higher-level we
    expose constants, the better.

It's checking for a constant.  I agree it should be exposed as early
as possible, but the routine that checks for it should be as low as possible
so that as many callers of it will see it.


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