Pull some code out into a helper function.
Effeciently codegen even splats in the range [-32,30].

This allows us to codegen <30,30,30,30> as:

        vspltisw v0, 15
        vadduwm v2, v0, v0

instead of as a cp load.

llvm-svn: 27750
1 file changed
tree: 9c3cb3c580c326326b8a944ee7797c59dd6dc6e9
  1. llvm/