[LLVMdev] Altivec vs the type legalizer

Duncan Sands baldrick at free.fr
Mon Nov 9 18:33:53 PST 2009


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.

Ciao,

Duncan.



More information about the llvm-dev mailing list