We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c38fcab commit e6061f2Copy full SHA for e6061f2
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -9156,7 +9156,7 @@ VPRecipeBase *VPRecipeBuilder::tryToCreateWidenRecipe(
9156
if (isa<LoadInst>(Instr) || isa<StoreInst>(Instr))
9157
return tryToWidenMemory(Instr, Operands, Range);
9158
9159
- if (auto ScaleFactor = getScalingForReduction(Instr))
+ if (std::optional<unsigned> ScaleFactor = getScalingForReduction(Instr))
9160
return tryToCreatePartialReduction(Instr, Operands, ScaleFactor.value());
9161
9162
if (!shouldWiden(Instr, Range))
0 commit comments