Re: [RFA][middle-end/52306] Fix reload from creating invalid RTL

2014-02-10 Thread Ulrich Weigand
Jeff Law wrote: > Anyway, we're processing the input reload for insn 73. We see that insn > 71's SET_DEST is the same as the input reload. The input reload's > reloadreg is a0. Replacing (reg:SI 48) with a0 in insn 71 produces an > insn which is recognized and which satisfies its constraints

[RFA][middle-end/52306] Fix reload from creating invalid RTL

2014-02-09 Thread Jeff Law
As mentioned in the PR, we emit_input_reload_insns has this little optimization: /* If we are reloading a pseudo-register that was set by the previous insn, see if we can get rid of that pseudo-register entirely by redirecting the previous insn into our reload register. */ When th