@@ -963,14 +963,6 @@ void VPWidenIntrinsicRecipe::execute(VPTransformState &State) {
963
963
// Remove EVL from Args
964
964
Args.pop_back ();
965
965
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
-
974
966
Value *VPInst = VBuilder.createSimpleIntrinsic (
975
967
VectorIntrinsicID, TysForDecl[0 ], Args, " vp.call" );
976
968
@@ -1032,20 +1024,6 @@ InstructionCost VPWidenIntrinsicRecipe::computeCost(ElementCount VF,
1032
1024
ParamTys.push_back (
1033
1025
ToVectorTy (Ctx.Types .inferScalarType (getOperand (I)), VF));
1034
1026
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
-
1049
1027
// TODO: Rework TTI interface to avoid reliance on underlying IntrinsicInst.
1050
1028
FastMathFlags FMF = hasFastMathFlags () ? getFastMathFlags () : FastMathFlags ();
1051
1029
IntrinsicCostAttributes CostAttrs (
0 commit comments