This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: optimize x86 pic register loads
- From: Dale Johannesen <dalej at apple dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Dale Johannesen <dalej at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 28 May 2002 18:52:06 -0700
- Subject: Re: optimize x86 pic register loads
On Tuesday, May 28, 2002, at 06:43 PM, Richard Henderson wrote:
> The unfortunate thing about current_function_uses_pic_offset_table
> is that it is set, but never reset after dead code is removed.
I've noticed this on ppc and have been thinking about ways to fix it.
Wouldn't it be better to do this in target-independent fashion?
Say, make a pass through the RTL towards the end and recompute
current_function_uses_pic_offset_table correctly?