File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2197,7 +2197,15 @@ class VPReductionRecipe : public VPSingleDefRecipe {
2197
2197
getVecOp (), getCondOp (), IsOrdered);
2198
2198
}
2199
2199
2200
- VP_CLASSOF_IMPL (VPDef::VPReductionSC)
2200
+ static inline bool classof (const VPRecipeBase *R) {
2201
+ return R->getVPDefID () == VPRecipeBase::VPReductionSC ||
2202
+ R->getVPDefID () == VPRecipeBase::VPReductionEVLSC;
2203
+ }
2204
+
2205
+ static inline bool classof (const VPUser *U) {
2206
+ auto *R = dyn_cast<VPRecipeBase>(U);
2207
+ return R && classof (R);
2208
+ }
2201
2209
2202
2210
// / Generate the reduction in the loop
2203
2211
void execute (VPTransformState &State) override ;
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ Type *VPTypeAnalysis::inferScalarType(const VPValue *V) {
275
275
.Case <VPExpandSCEVRecipe>([](const VPExpandSCEVRecipe *R) {
276
276
return R->getSCEV ()->getType ();
277
277
})
278
- .Case <VPReductionRecipe, VPReductionEVLRecipe >([this ](const auto *R) {
278
+ .Case <VPReductionRecipe>([this ](const auto *R) {
279
279
return inferScalarType (R->getChainOp ());
280
280
});
281
281
You can’t perform that action at this time.
0 commit comments