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: Small improvement for new code in postreload


On 07/27/10 09:19, Bernd Schmidt wrote:
Now that my new optimization in postreload is hopefully stable, I've
committed the following tweak for it to make it handle more cases.

We were being overly conservative about not substituting into an insn
that sets the register, e.g.

  r2 = r3 + 4;
  r3 = [r2]; // r2 dead

can be transformed into

r3 = [r3 + 4];

Likewise for
-       adds    r0, r0, #24
-       adds    r0, r0, #12
+       adds    r0, r0, #36

Bootstrapped and regression tested on i686-linux.
OK
jeff


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