[LLVMdev] Altivec vs the type legalizer

Dale Johannesen dalej at apple.com
Mon Nov 9 21:43:22 PST 2009


On Nov 9, 2009, at 9:38 PM, Dale Johannesen wrote:

>
> 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.

(Unless somebody's fixed it in the last week or so; I'm a bit out of  
date.)





More information about the llvm-dev mailing list