void StructuredLoopToSelectionReductionOpportunity:: AdaptPhiInstructionsForAddedEdge(uint32_t from_id, BasicBlock* to_block) { to_block->ForEachPhiInst([this, &from_id](Instruction* phi_inst) { // Add to the phi operand an (undef, from_id) pair to reflect the added // edge. auto undef_id = FindOrCreateGlobalUndef(context_, phi_inst->type_id()); phi_inst->AddOperand(Operand(SPV_OPERAND_TYPE_ID, {undef_id})); phi_inst->AddOperand(Operand(SPV_OPERAND_TYPE_ID, {from_id})); }); }