@@ -963,14 +963,6 @@ void VPWidenIntrinsicRecipe::execute(VPTransformState &State) {
963963 // Remove EVL from Args
964964 Args.pop_back ();
965965
966- if (VectorIntrinsicID == Intrinsic::vp_icmp ||
967- VectorIntrinsicID == Intrinsic::vp_fcmp) {
968- auto &Ctx = State.Builder .getContext ();
969- Value *Pred = MetadataAsValue::get (
970- Ctx, MDString::get (Ctx, CmpInst::getPredicateName (getPredicate ())));
971- Args.push_back (Pred);
972- }
973-
974966 Value *VPInst = VBuilder.createSimpleIntrinsic (
975967 VectorIntrinsicID, TysForDecl[0 ], Args, " vp.call" );
976968
@@ -1032,20 +1024,6 @@ InstructionCost VPWidenIntrinsicRecipe::computeCost(ElementCount VF,
10321024 ParamTys.push_back (
10331025 ToVectorTy (Ctx.Types .inferScalarType (getOperand (I)), VF));
10341026
1035- // TODO: Implment in cost model
1036- if (std::optional<unsigned > FOp =
1037- VPIntrinsic::getFunctionalOpcodeForVP (VectorIntrinsicID)) {
1038- if (FOp == Instruction::FNeg) {
1039- // Instruction *CtxI =
1040- dyn_cast_or_null<Instruction>(getUnderlyingValue ());
1041- Type *VectorTy = ToVectorTy (getResultType (), VF);
1042- return Ctx.TTI .getArithmeticInstrCost (
1043- FOp.value (), VectorTy, CostKind,
1044- {TargetTransformInfo::OK_AnyValue, TargetTransformInfo::OP_None},
1045- {TargetTransformInfo::OK_AnyValue, TargetTransformInfo::OP_None});
1046- }
1047- }
1048-
10491027 // TODO: Rework TTI interface to avoid reliance on underlying IntrinsicInst.
10501028 FastMathFlags FMF = hasFastMathFlags () ? getFastMathFlags () : FastMathFlags ();
10511029 IntrinsicCostAttributes CostAttrs (
0 commit comments