Searched refs:InstToErase (Results 1 – 2 of 2) sorted by relevance
2018 auto *InstToErase = &MI; in tryFoldFoldableCopy() local2019 while (MRI->use_nodbg_empty(InstToErase->getOperand(0).getReg())) { in tryFoldFoldableCopy()2020 auto &SrcOp = InstToErase->getOperand(1); in tryFoldFoldableCopy()2022 InstToErase->eraseFromParent(); in tryFoldFoldableCopy()2024 InstToErase = nullptr; in tryFoldFoldableCopy()2027 InstToErase = MRI->getVRegDef(SrcReg); in tryFoldFoldableCopy()2028 if (!InstToErase || !TII->isFoldableCopy(*InstToErase)) in tryFoldFoldableCopy()2032 if (InstToErase && InstToErase->isRegSequence() && in tryFoldFoldableCopy()2033 MRI->use_nodbg_empty(InstToErase->getOperand(0).getReg())) { in tryFoldFoldableCopy()2034 InstToErase->eraseFromParent(); in tryFoldFoldableCopy()
641 SmallVector<Instruction *> InstToErase; in simplifyConditions() local651 InstToErase.push_back(cast<Instruction>(PI.Pred)); in simplifyConditions()656 for (auto *I : InstToErase) in simplifyConditions()