diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-04-03 23:55:43 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-04-03 23:55:43 +0000 |
| commit | 533aed9a35fb50b55d28ec426254236a89766f13 (patch) | |
| tree | 674aa66708a709f154eb1ac36cf8e581514c8905 | |
| parent | 0ef83c83e10264e8dc633fb1a82d79d262c9819c (diff) | |
| download | bcm5719-llvm-533aed9a35fb50b55d28ec426254236a89766f13.tar.gz bcm5719-llvm-533aed9a35fb50b55d28ec426254236a89766f13.zip | |
Make sure to mark unsupported SCALAR_TO_VECTOR operations as expand.
llvm-svn: 27385
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 06096a74dce..1a930dcd642 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -182,7 +182,7 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM) setOperationAction(ISD::XOR , (MVT::ValueType)VT, Legal); // We can custom expand all VECTOR_SHUFFLEs to VPERM. - setOperationAction(ISD::VECTOR_SHUFFLE, (MVT::ValueType)VT, Custom); + setOperationAction(ISD::VECTOR_SHUFFLE, (MVT::ValueType)VT, Promote); setOperationAction(ISD::MUL , (MVT::ValueType)VT, Expand); setOperationAction(ISD::SDIV, (MVT::ValueType)VT, Expand); @@ -192,8 +192,12 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM) setOperationAction(ISD::EXTRACT_VECTOR_ELT, (MVT::ValueType)VT, Expand); setOperationAction(ISD::INSERT_VECTOR_ELT, (MVT::ValueType)VT, Expand); setOperationAction(ISD::BUILD_VECTOR, (MVT::ValueType)VT, Expand); + + setOperationAction(ISD::SCALAR_TO_VECTOR, (MVT::ValueType)VT, Expand); } + setOperationAction(ISD::VECTOR_SHUFFLE, MVT::v16i8, Custom); + addRegisterClass(MVT::v4f32, PPC::VRRCRegisterClass); addRegisterClass(MVT::v4i32, PPC::VRRCRegisterClass); addRegisterClass(MVT::v8i16, PPC::VRRCRegisterClass); |

