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] postreload: Invalidate reg_state info@barrier/volatile insns


> Wouldn't this prevent optimizations in cases like:
>
> insn 1: r1 = r2 + r3
> insn 2: r4 = r1, r1 dead
> insn 3: unspec_volatile
>
> With the proposal above we would mark r1 with an invalid use when passing
> insn 3. But for registers which are already dead we should not do this.

You're right.  The patch is OK, thanks for explaining.

-- 
Eric Botcazou


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