Skip to content

Commit 494cfa7

Browse files
committed
Add fixme
1 parent db46c3b commit 494cfa7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ VPPartialReductionRecipe::computeCost(ElementCount VF,
306306
// If the partial reduction is predicated, a select will be operand 1.
307307
// If it isn't predicated and the mul isn't operating on a constant, then it
308308
// should have been turned into a VPExpressionRecipe.
309+
// FIXME: Replace the entire function with this once all partial reduction
310+
// variants are bundled into VPExpressionRecipe.
309311
if (!match(Op, m_Select(m_VPValue(), m_VPValue(Op), m_VPValue())) &&
310312
!match(Op, m_Mul(m_VPValue(), m_ConstantInt(MulConst)))) {
311313
auto *PhiType = Ctx.Types.inferScalarType(getChainOp());

0 commit comments

Comments
 (0)