majnemer added a subscriber: majnemer. majnemer added a comment. I think it'd be more concise to use `getType()->getVectorNumElements()` instead of `cast<VectorType>(getType())->getNumElements()` rL LLVM http://reviews.llvm.org/D10496