@@ -1000,14 +1000,6 @@ void VPWidenIntrinsicRecipe::execute(VPTransformState &State) {
1000
1000
// Remove EVL from Args
1001
1001
Args.pop_back ();
1002
1002
1003
- if (VectorIntrinsicID == Intrinsic::vp_icmp ||
1004
- VectorIntrinsicID == Intrinsic::vp_fcmp) {
1005
- auto &Ctx = State.Builder .getContext ();
1006
- Value *Pred = MetadataAsValue::get (
1007
- Ctx, MDString::get (Ctx, CmpInst::getPredicateName (getPredicate ())));
1008
- Args.push_back (Pred);
1009
- }
1010
-
1011
1003
Value *VPInst = VBuilder.createSimpleIntrinsic (
1012
1004
VectorIntrinsicID, TysForDecl[0 ], Args, " vp.call" );
1013
1005
@@ -1069,20 +1061,6 @@ InstructionCost VPWidenIntrinsicRecipe::computeCost(ElementCount VF,
1069
1061
ParamTys.push_back (
1070
1062
ToVectorTy (Ctx.Types .inferScalarType (getOperand (I)), VF));
1071
1063
1072
- // TODO: Implment in cost model
1073
- if (std::optional<unsigned > FOp =
1074
- VPIntrinsic::getFunctionalOpcodeForVP (VectorIntrinsicID)) {
1075
- if (FOp == Instruction::FNeg) {
1076
- // Instruction *CtxI =
1077
- dyn_cast_or_null<Instruction>(getUnderlyingValue ());
1078
- Type *VectorTy = ToVectorTy (getResultType (), VF);
1079
- return Ctx.TTI .getArithmeticInstrCost (
1080
- FOp.value (), VectorTy, CostKind,
1081
- {TargetTransformInfo::OK_AnyValue, TargetTransformInfo::OP_None},
1082
- {TargetTransformInfo::OK_AnyValue, TargetTransformInfo::OP_None});
1083
- }
1084
- }
1085
-
1086
1064
// TODO: Rework TTI interface to avoid reliance on underlying IntrinsicInst.
1087
1065
FastMathFlags FMF = hasFastMathFlags () ? getFastMathFlags () : FastMathFlags ();
1088
1066
IntrinsicCostAttributes CostAttrs (
0 commit comments