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: Speedup CSE by 5%


    There are two possible reasons for the copy_rtx I can think of: either
    fold_rtx destructively modifies its input (which I shouldn't happen
    from what I can see), or we have RTL sharing issues.  In the latter
    case, we can postpone the copy until after we found that fold_rtx has
    made a change.

    I did a bit of archaeology; the call to copy_rtx was introduced as
    part of a larger change by kenner in

    http://savannah.gnu.org/cgi-bin/viewcvs/gcc/old-gcc/cse.c.diff?r1=1.165&r2=1.166

    Kenner, any idea what it was for?

Nine years is a long time, but I'm pretty sure the the concern was RTL
sharing and the subsequent validate_change call.  It's more likely that
this was put in as the result of running into a bug due to that sharing
than that it was done "by inspection" without running into such a bug,
but that's just a guess based on my practices at that point.


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