Searched refs:InstToErase (Results 1 – 2 of 2) sorted by relevance
1489 auto *InstToErase = &MI; in tryFoldFoldableCopy() local1490 while (MRI->use_nodbg_empty(InstToErase->getOperand(0).getReg())) { in tryFoldFoldableCopy()1491 auto &SrcOp = InstToErase->getOperand(1); in tryFoldFoldableCopy()1493 InstToErase->eraseFromParent(); in tryFoldFoldableCopy()1495 InstToErase = nullptr; in tryFoldFoldableCopy()1498 InstToErase = MRI->getVRegDef(SrcReg); in tryFoldFoldableCopy()1499 if (!InstToErase || !TII->isFoldableCopy(*InstToErase)) in tryFoldFoldableCopy()1503 if (InstToErase && InstToErase->isRegSequence() && in tryFoldFoldableCopy()1504 MRI->use_nodbg_empty(InstToErase->getOperand(0).getReg())) { in tryFoldFoldableCopy()1505 InstToErase->eraseFromParent(); in tryFoldFoldableCopy()
606 SmallVector<Instruction *> InstToErase; in simplifyConditions() local617 InstToErase.push_back(cast<Instruction>(Cond)); in simplifyConditions()622 for (auto *I : InstToErase) in simplifyConditions()