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]

Re: block merging


    I've just run into a case where the improved block merging code can create

    jump X
    NOTE
    BARRIER
    X

    When we delete the jump X, we do not delete the BARRIER because it
    does not immediately follow the jump.  Opps.

    I'm pondering the best fix.  

Although it's a major conceptual change, it may well be that the right
approach is to weaken the test and have a BARRIER get deleted even though
it's separated by one or more NOTEs from the JUMP_INSN (or CALL_INSN).
I think this is more robust under the principle of "be liberal and what you
expect and conservative in what you generate".


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