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 c088b6a commit 94b2444Copy full SHA for 94b2444
llvm/lib/Transforms/Vectorize/VPlanPredicator.cpp
@@ -133,8 +133,8 @@ VPValue *VPPredicator::createBlockInMask(VPBasicBlock *VPBB) {
133
// load/store/gather/scatter. Initialize BlockMask to no-mask.
134
VPValue *BlockMask = nullptr;
135
// This is the block mask. We OR all unique incoming edges.
136
- for (auto *Predecessor : make_range(VPBB->getPredecessors().begin(),
137
- unique(VPBB->getPredecessors()))) {
+ for (auto *Predecessor : SetVector<VPBlockBase *>(
+ VPBB->getPredecessors().begin(), VPBB->getPredecessors().end())) {
138
VPValue *EdgeMask = createEdgeMask(cast<VPBasicBlock>(Predecessor), VPBB);
139
if (!EdgeMask) { // Mask of predecessor is all-one so mask of block is
140
// too.
0 commit comments