[PowerPC] Fixup SELECT_CC (and SETCC) patterns with i1 comparison operands
[oota-llvm.git] / lib / Target / PowerPC / PPCISelLowering.cpp
index 72d1d19d0f3371ccbeaf8266d240de78ac94832b..2480c65b9edeea6b7efdf4fa4db5081f046bde59 100644 (file)
@@ -431,6 +431,8 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
       AddPromotedToType (ISD::LOAD  , VT, MVT::v4i32);
       setOperationAction(ISD::SELECT, VT, Promote);
       AddPromotedToType (ISD::SELECT, VT, MVT::v4i32);
+      setOperationAction(ISD::SELECT_CC, VT, Promote);
+      AddPromotedToType (ISD::SELECT_CC, VT, MVT::v4i32);
       setOperationAction(ISD::STORE, VT, Promote);
       AddPromotedToType (ISD::STORE, VT, MVT::v4i32);