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 81ec7bd commit bc59b63Copy full SHA for bc59b63
llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
@@ -177,9 +177,8 @@ bool VPlanVerifier::verifyVPBasicBlock(const VPBasicBlock *VPBB) {
177
static bool hasDuplicates(const SmallVectorImpl<VPBlockBase *> &VPBlockVec) {
178
SmallDenseSet<const VPBlockBase *, 8> VPBlockSet;
179
for (const auto *Block : VPBlockVec) {
180
- if (VPBlockSet.count(Block))
+ if (!VPBlockSet.insert(Block).second)
181
return true;
182
- VPBlockSet.insert(Block);
183
}
184
return false;
185
0 commit comments