Request expansion of ConstantVec nodes.
llvm-svn: 25773
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 83297ba..2c3a072 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -153,6 +153,11 @@
if (TM.getSubtarget<PPCSubtarget>().hasAltivec()) {
addRegisterClass(MVT::v4f32, PPC::VRRCRegisterClass);
addRegisterClass(MVT::v4i32, PPC::VRRCRegisterClass);
+
+ // FIXME: We don't support any ConstantVec's yet. We should custom expand
+ // the ones we do!
+ setOperationAction(ISD::ConstantVec, MVT::v4f32, Expand);
+ setOperationAction(ISD::ConstantVec, MVT::v4i32, Expand);
}
setSetCCResultContents(ZeroOrOneSetCCResult);