@@ -708,10 +708,6 @@ struct VPCostContext {
708
708
709
709
// / Returns the OperandInfo for \p V, if it is a live-in.
710
710
TargetTransformInfo::OperandValueInfo getOperandInfo (VPValue *V) const ;
711
-
712
- // / Returns true if VP intrinsics with explicit vector length support should
713
- // / be generated in the tail folded loop.
714
- bool foldTailWithEVL () const ;
715
711
};
716
712
717
713
// / VPRecipeBase is a base class modeling a sequence of one or more output IR
@@ -2797,24 +2793,22 @@ class VPReductionEVLRecipe : public VPReductionRecipe {
2797
2793
class VPExtendedReductionRecipe : public VPReductionRecipe {
2798
2794
// / Opcode of the extend recipe will be lowered to.
2799
2795
Instruction::CastOps ExtOp;
2800
- // / Debug location of reduction recipe will be lowered to.
2801
- DebugLoc RedDL;
2802
2796
2803
2797
public:
2804
2798
VPExtendedReductionRecipe (VPReductionRecipe *R, VPWidenCastRecipe *Ext)
2805
2799
: VPReductionRecipe(VPDef::VPExtendedReductionSC,
2806
2800
R->getRecurrenceDescriptor (),
2807
2801
{R->getChainOp (), Ext->getOperand (0 )}, R->getCondOp (),
2808
2802
R->isOrdered(), Ext->isNonNeg(), Ext->getDebugLoc()),
2809
- ExtOp(Ext->getOpcode ()), RedDL(R-> getDebugLoc ()) {}
2803
+ ExtOp(Ext->getOpcode ()) {}
2810
2804
2811
2805
// / For cloning VPExtendedReductionRecipe.
2812
2806
VPExtendedReductionRecipe (VPExtendedReductionRecipe *ExtRed)
2813
2807
: VPReductionRecipe(
2814
2808
VPDef::VPExtendedReductionSC, ExtRed->getRecurrenceDescriptor (),
2815
2809
{ExtRed->getChainOp (), ExtRed->getVecOp ()}, ExtRed->getCondOp (),
2816
- ExtRed->isOrdered(), ExtRed->isNonNeg(), ExtRed->getExtDebugLoc ()),
2817
- ExtOp(ExtRed->getExtOpcode ()), RedDL(ExtRed-> getRedDebugLoc ()) {}
2810
+ ExtRed->isOrdered(), ExtRed->isNonNeg(), ExtRed->getDebugLoc ()),
2811
+ ExtOp(ExtRed->getExtOpcode ()) {}
2818
2812
2819
2813
~VPExtendedReductionRecipe () override = default ;
2820
2814
@@ -2849,12 +2843,6 @@ class VPExtendedReductionRecipe : public VPReductionRecipe {
2849
2843
2850
2844
// / The Opcode of extend recipe.
2851
2845
Instruction::CastOps getExtOpcode () const { return ExtOp; }
2852
-
2853
- // / Return the debug location of the extend recipe.
2854
- DebugLoc getExtDebugLoc () const { return getDebugLoc (); }
2855
-
2856
- // / Return the debug location of the reduction recipe.
2857
- DebugLoc getRedDebugLoc () const { return RedDL; }
2858
2846
};
2859
2847
2860
2848
// / A recipe to represent inloop MulAccumulateReduction operations, performing a
@@ -2869,13 +2857,6 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
2869
2857
// / Non-neg flag of the extend recipe.
2870
2858
bool IsNonNeg = false ;
2871
2859
2872
- // / Debug location of extend recipes will be lowered to.
2873
- DebugLoc Ext0DL;
2874
- DebugLoc Ext1DL;
2875
-
2876
- // / Debug location of the reduction recipe will be lowered to.
2877
- DebugLoc RedDL;
2878
-
2879
2860
// / Is this multiply-accumulate-reduction recipe contains extend?
2880
2861
bool IsExtended = false ;
2881
2862
@@ -2887,10 +2868,8 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
2887
2868
VPDef::VPMulAccumulateReductionSC, R->getRecurrenceDescriptor (),
2888
2869
{R->getChainOp (), Ext0->getOperand (0 ), Ext1->getOperand (0 )},
2889
2870
R->getCondOp (), R->isOrdered(), Mul->hasNoUnsignedWrap(),
2890
- Mul->hasNoSignedWrap(), Mul->getDebugLoc()),
2891
- ExtOp(Ext0->getOpcode ()), IsNonNeg(Ext0->isNonNeg ()),
2892
- Ext0DL(Ext0->getDebugLoc ()), Ext1DL(Ext1->getDebugLoc ()),
2893
- RedDL(R->getDebugLoc ()) {
2871
+ Mul->hasNoSignedWrap(), R->getDebugLoc()),
2872
+ ExtOp(Ext0->getOpcode ()), IsNonNeg(Ext0->isNonNeg ()) {
2894
2873
assert (getRecurrenceDescriptor ().getOpcode () == Instruction::Add &&
2895
2874
" The reduction instruction in MulAccumulateteReductionRecipe must "
2896
2875
" be Add" );
@@ -2902,8 +2881,7 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
2902
2881
VPDef::VPMulAccumulateReductionSC, R->getRecurrenceDescriptor (),
2903
2882
{R->getChainOp (), Mul->getOperand (0 ), Mul->getOperand (1 )},
2904
2883
R->getCondOp (), R->isOrdered(), Mul->hasNoUnsignedWrap(),
2905
- Mul->hasNoSignedWrap(), Mul->getDebugLoc()),
2906
- RedDL(R->getDebugLoc ()) {
2884
+ Mul->hasNoSignedWrap(), R->getDebugLoc()) {
2907
2885
assert (getRecurrenceDescriptor ().getOpcode () == Instruction::Add &&
2908
2886
" The reduction instruction in MulAccumulateReductionRecipe must be "
2909
2887
" Add" );
@@ -2917,10 +2895,9 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
2917
2895
{MulAcc->getChainOp (), MulAcc->getVecOp0 (), MulAcc->getVecOp1 ()},
2918
2896
MulAcc->getCondOp (), MulAcc->isOrdered(),
2919
2897
MulAcc->hasNoUnsignedWrap(), MulAcc->hasNoSignedWrap(),
2920
- MulAcc->getMulDebugLoc ()),
2898
+ MulAcc->getDebugLoc ()),
2921
2899
ExtOp(MulAcc->getExtOpcode ()), IsNonNeg(MulAcc->isNonNeg ()),
2922
- Ext0DL(MulAcc->getExt0DebugLoc ()), Ext1DL(MulAcc->getExt1DebugLoc ()),
2923
- RedDL(MulAcc->getRedDebugLoc ()), IsExtended(MulAcc->isExtended ()) {}
2900
+ IsExtended(MulAcc->isExtended ()) {}
2924
2901
2925
2902
~VPMulAccumulateReductionRecipe () override = default ;
2926
2903
@@ -2975,16 +2952,6 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
2975
2952
// Also drop the extra flags not in VPRecipeWithIRFlags.
2976
2953
this ->IsNonNeg = false ;
2977
2954
}
2978
-
2979
- // / Return debug location of mul recipe.
2980
- DebugLoc getMulDebugLoc () const { return getDebugLoc (); }
2981
-
2982
- // / Return debug location of extend recipe.
2983
- DebugLoc getExt0DebugLoc () const { return Ext0DL; }
2984
- DebugLoc getExt1DebugLoc () const { return Ext1DL; }
2985
-
2986
- // / Return the debug location of reduction recipe.
2987
- DebugLoc getRedDebugLoc () const { return RedDL; }
2988
2955
};
2989
2956
2990
2957
// / VPReplicateRecipe replicates a given instruction producing multiple scalar
0 commit comments