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]

Re: Minor improvement when adding call-clobbered symbols


On 3/2/07, Diego Novillo <dnovillo@redhat.com> wrote:

If a memory tag T is call-clobbered, the operand scanner will blindly add *all* the members of T's alias set to every call-site, regardless of their individual clobbered state.

I assume the only case this really matters is when we partition, because compute_call_clobbered should mark all aliases of a clobbered tag as themselves clobbered, unless they are unmodifiable_var_p.

(see compute_call_clobbered and mark_aliases_call_clobbered)

Thus, without partitioning, the only clobberings this should save you
are unmodifiable_var_p clobbers, or something is broken :)


This patch fixes that. It should not give a huge improvement, but it happens in some places. Bootstrapped and tested x86, x86-64, ia64 and i686.




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