[LLVMdev] Altivec vs the type legalizer

Duncan Sands
2009-11-10T02:33:53Z

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.