Pull some code out into a helper function.
authorChris Lattner <sabre@nondot.org>
Mon, 17 Apr 2006 06:00:21 +0000 (06:00 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 17 Apr 2006 06:00:21 +0000 (06:00 +0000)
commit4a998b9ca8372038ac92ea6057290c2cad73f988
treed140cad6f03f5c7f555e89f3b0fca7ceebfc31e4
parent6e5316ff6540036b27851e5dd8f878abc3285057
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27750 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp