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] | |
On Wed, Jun 23, 2010 at 11:19 PM, Maxim Kuvyrkov<maxim@codesourcery.com> wrote:This patch enables optimizations, particularly GCSE, handle calculation of PIC addresses. GCSE tracks only single instructions, so it can't handle two-instruction calculation of PIC address.
With this patch, calculations of PIC addresses are represented as single instructions allowing GCSE eliminate all but the first address calculation for global variables.
Any comments?
Yes. This is what we added GCSE's ability to eliminate redundancies from REG_EQUAL notes for. If your PIC addresses have a REG_EQUAL note, GCSE is (or should be) already able to eliminate redundant address calculations.
-- Maxim Kuvyrkov CodeSourcery maxim@codesourcery.com (650) 331-3385 x724
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |