Skip to content

Commit 9430a4b

Browse files
committed
[VPlan] Use getEdgeMask when constructing VPBlendRecipe (NFCI).
After 2d0d65b, block-in and edge masks are create up-front. Only retrieve the cached edge-mask here.
1 parent 9c58f3a commit 9430a4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8226,7 +8226,7 @@ VPBlendRecipe *VPRecipeBuilder::tryToBlend(PHINode *Phi,
82268226
for (unsigned In = 0; In < NumIncoming; In++) {
82278227
OperandsWithMask.push_back(Operands[In]);
82288228
VPValue *EdgeMask =
8229-
createEdgeMask(Phi->getIncomingBlock(In), Phi->getParent());
8229+
getEdgeMask(Phi->getIncomingBlock(In), Phi->getParent());
82308230
if (!EdgeMask) {
82318231
assert(In == 0 && "Both null and non-null edge masks found");
82328232
assert(all_equal(Operands) &&

0 commit comments

Comments
 (0)