[cfe-commits] [PATCH] Optimize vec3 loads/stores

Sean Silva silvas at purdue.edu
Wed Jul 18 18:23:24 PDT 2012


I know vectors aren't part of C11/C++11, but doesn't this violate the
memory model? In particular, doesn't it introduce spurious stores?

Forgive me if there's some context behind this that I'm missing which
makes this concern irrelevant.

--Sean Silva

On Tue, Jul 17, 2012 at 3:46 PM, Tanya Lattner <lattner at apple.com> wrote:
> This patch treats vectors of size 3 like size 4 when loading and store which in turn will cause more optimal code to be emitted by the backend. I've included a test case.
>
> Please review.
>
> Thanks,
> Tanya
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>



More information about the cfe-commits mailing list