Put an llvm_unreachable at the end of getSplatIndex as its loop should never find all undef elements.