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]

Small improvement for new code in postreload


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.


Bernd

Attachment: pr-new.diff
Description: Text document


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