Lines Matching refs:EV
1654 Instruction *InstCombiner::visitExtractValueInst(ExtractValueInst &EV) { in visitExtractValueInst() argument
1655 Value *Agg = EV.getAggregateOperand(); in visitExtractValueInst()
1657 if (!EV.hasIndices()) in visitExtractValueInst()
1658 return ReplaceInstUsesWith(EV, Agg); in visitExtractValueInst()
1661 if (Constant *C2 = C->getAggregateElement(*EV.idx_begin())) { in visitExtractValueInst()
1662 if (EV.getNumIndices() == 0) in visitExtractValueInst()
1663 return ReplaceInstUsesWith(EV, C2); in visitExtractValueInst()
1666 return ExtractValueInst::Create(C2, EV.getIndices().slice(1)); in visitExtractValueInst()
1674 for (exti = EV.idx_begin(), insi = IV->idx_begin(), in visitExtractValueInst()
1675 exte = EV.idx_end(), inse = IV->idx_end(); in visitExtractValueInst()
1688 EV.getIndices()); in visitExtractValueInst()
1695 return ReplaceInstUsesWith(EV, IV->getInsertedValueOperand()); in visitExtractValueInst()
1706 EV.getIndices()); in visitExtractValueInst()
1733 if (*EV.idx_begin() == 0) { // Normal result. in visitExtractValueInst()
1750 if (*EV.idx_begin() == 0) { // Normal result. in visitExtractValueInst()
1759 if (*EV.idx_begin() == 0) { // Normal result. in visitExtractValueInst()
1781 for (ExtractValueInst::idx_iterator I = EV.idx_begin(), E = EV.idx_end(); in visitExtractValueInst()
1791 return ReplaceInstUsesWith(EV, Builder->CreateLoad(GEP)); in visitExtractValueInst()