File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1187,10 +1187,9 @@ void VPIRPhi::execute(VPTransformState &State) {
11871187
11881188void VPPhiAccessors::removeIncomingValueFor (VPBlockBase *IncomingBlock) const {
11891189 VPRecipeBase *R = const_cast <VPRecipeBase *>(getAsRecipe ());
1190- auto &Preds = R->getParent ()->getPredecessors ();
1191- assert (R->getNumOperands () == Preds.size () &&
1190+ assert (R->getNumOperands () == R->getParent ()->getNumPredecessors () &&
11921191 " Number of phi operands must match number of predecessors" );
1193- unsigned Position = std::distance (Preds. begin (), find (Preds, IncomingBlock) );
1192+ unsigned Position = R-> getParent ()-> getIndexForPredecessor ( IncomingBlock);
11941193 R->removeOperand (Position);
11951194}
11961195
You can’t perform that action at this time.
0 commit comments