This is the mail archive of the gcc@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: "generic" vectorization?


Dale Johannesen <dalej@apple.com> writes:

> Your example transformation only works on ppc if s1, s2, d are
> 4-byte aligned.  And that's using 64-bit ints; for vectors the
> requirement is 16-byte alignment.  Of course you can insert code to
> check at runtime, but that's painful and eats up a lot of the
> benefit.

Yes, I understand this. I envisioned this transformation as part of
the auto-vectorization framework, which already has plans on how to
handle the issue
(http://www.gnu.org/software/gcc/projects/tree-ssa/vectorization.html#Alignment)

-- 
	Falk


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