[LLVMdev] Altivec vs the type legalizer

Dale Johannesen
2009-11-10T05:38:38Z

On Nov 9, 2009, at 6:33 PM, Duncan Sands wrote:

> Hi Dale,
>
>> PPC Altivec supports vector type v16i8 (and others) where the
>> element type is not legal (in llvm's implementation).  When we have
>> a BUILD_VECTOR of these types with constant elements, LegalizeTypes
>> first promotes the element types to i32, then builds a constant
>> pool entry of type v16i32.
>
> are you sure?  I would expect it to build v4i32.

Yes, I'm sure.  Try it.