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: [PATCH] Optimize initialization from compound literals (PR tree-optimization/33723)


On 10/29/07, Jakub Jelinek <jakub@redhat.com> wrote:
> The following patch optimizes this by initializing the variable to
> the initializer of the compound literal if it's address has never been
> taken.  The generated assembly looks much better on x86_64-linux.

This is also very useful with vector types as most people use compoind
literals to initialize vectors.

-- Pinski


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