This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] ppc-darwin -mdynamic-no-pic improvement
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: patch Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 9 Aug 2005 15:45:09 -0400
- Subject: [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