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 061ef3c commit c0bf51eCopy full SHA for c0bf51e
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1862,8 +1862,7 @@ static void removeBranchOnConst(VPlan &Plan) {
1862
1863
VPBasicBlock *RemovedSucc =
1864
cast<VPBasicBlock>(VPBB->getSuccessors()[RemovedIdx]);
1865
- const auto &Preds = RemovedSucc->getPredecessors();
1866
- assert(count(Preds, VPBB) == 1 &&
+ assert(count(RemovedSucc->getPredecessors(), VPBB) == 1 &&
1867
"There must be a single edge between VPBB and its successor");
1868
// Values coming from VPBB into phi recipes of RemoveSucc are removed from
1869
// these recipes.
0 commit comments