Home
last modified time | relevance | path

Searched refs:InstToErase (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIFoldOperands.cpp2018 auto *InstToErase = &MI; in tryFoldFoldableCopy() local
2019 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()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStructurizeCFG.cpp641 SmallVector<Instruction *> InstToErase; in simplifyConditions() local
651 InstToErase.push_back(cast<Instruction>(PI.Pred)); in simplifyConditions()
656 for (auto *I : InstToErase) in simplifyConditions()