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]

[PATCH] ppc-darwin -mdynamic-no-pic improvement


While looking into code generation while compiling GCC, I noticed that we miss a
CSE opportunity because we did not separate the low and high parts out.


This should improve code generation on ppc-darrwin with -mdynamic-no-pic a little
(which is used when compiling GCC already). This should also improve SPEC but
since I don't have access to SPEC, I cannot test it.


OK? Bootstrapped and tested on powerpc-darwin7.9.0 with no regressions.

Thanks,
Andrew Pinski

ChangeLog:
* config/darwin.c (machopic_indirect_data_reference): Use a new register
for the high part when generating dynamic-no-pic code.



Attachment: t.diff.txt
Description: Text document


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