[llvm-commits] [llvm] r139324 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Nadav Rotem
nadav.rotem at intel.com
Thu Sep 8 15:17:35 PDT 2011
Author: nadav
Date: Thu Sep 8 17:17:35 2011
New Revision: 139324
URL: http://llvm.org/viewvc/llvm-project?rev=139324&view=rev
Log:
Dix the 80-columns and remove unsupported v8i16 type from the list of legal vselect types.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=139324&r1=139323&r2=139324&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Sep 8 17:17:35 2011
@@ -920,7 +920,6 @@
setOperationAction(ISD::VSELECT, MVT::v2f64, Custom);
setOperationAction(ISD::VSELECT, MVT::v2i64, Custom);
setOperationAction(ISD::VSELECT, MVT::v16i8, Custom);
- setOperationAction(ISD::VSELECT, MVT::v8i16, Custom);
setOperationAction(ISD::VSELECT, MVT::v4i32, Custom);
setOperationAction(ISD::VSELECT, MVT::v4f32, Custom);
@@ -8703,16 +8702,20 @@
assert(Op2.getValueType().isVector() && "Op2 must be a vector");
assert(Cond.getValueType().isVector() && "Cond must be a vector");
assert(Op1.getValueType() == Op2.getValueType() && "Type mismatch");
-
- switch (Op1.getValueType().getSimpleVT().SimpleTy) {
+
+ EVT VT = Op1.getValueType();
+ switch (VT.getSimpleVT().SimpleTy) {
default: break;
- case MVT::v2i64: return DAG.getNode(X86ISD::BLENDVPD, DL, Op1.getValueType(), Ops, array_lengthof(Ops));
- case MVT::v2f64: return DAG.getNode(X86ISD::BLENDVPD, DL, Op1.getValueType(), Ops, array_lengthof(Ops));
- case MVT::v4i32: return DAG.getNode(X86ISD::BLENDVPS, DL, Op1.getValueType(), Ops, array_lengthof(Ops));
- case MVT::v4f32: return DAG.getNode(X86ISD::BLENDVPS, DL, Op1.getValueType(), Ops, array_lengthof(Ops));
- case MVT::v16i8: return DAG.getNode(X86ISD::PBLENDVB, DL, Op1.getValueType(), Ops, array_lengthof(Ops));
+ case MVT::v2i64:
+ case MVT::v2f64:
+ return DAG.getNode(X86ISD::BLENDVPD, DL, VT, Ops, array_lengthof(Ops));
+ case MVT::v4i32:
+ case MVT::v4f32:
+ return DAG.getNode(X86ISD::BLENDVPS, DL, VT , Ops, array_lengthof(Ops));
+ case MVT::v16i8:
+ return DAG.getNode(X86ISD::PBLENDVB, DL, VT , Ops, array_lengthof(Ops));
}
-
+
return SDValue();
}
More information about the llvm-commits
mailing list