Skip to content

Commit 94b2444

Browse files
committed
[VPlan] Fix unique-related thinko
1 parent c088b6a commit 94b2444

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlanPredicator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ VPValue *VPPredicator::createBlockInMask(VPBasicBlock *VPBB) {
133133
// load/store/gather/scatter. Initialize BlockMask to no-mask.
134134
VPValue *BlockMask = nullptr;
135135
// This is the block mask. We OR all unique incoming edges.
136-
for (auto *Predecessor : make_range(VPBB->getPredecessors().begin(),
137-
unique(VPBB->getPredecessors()))) {
136+
for (auto *Predecessor : SetVector<VPBlockBase *>(
137+
VPBB->getPredecessors().begin(), VPBB->getPredecessors().end())) {
138138
VPValue *EdgeMask = createEdgeMask(cast<VPBasicBlock>(Predecessor), VPBB);
139139
if (!EdgeMask) { // Mask of predecessor is all-one so mask of block is
140140
// too.

0 commit comments

Comments
 (0)