Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIFoldOperands.cpp1469 auto *InstToErase = &MI; in tryFoldFoldableCopy() local
1470 while (MRI->use_nodbg_empty(InstToErase->getOperand(0).getReg())) { in tryFoldFoldableCopy()
1471 auto &SrcOp = InstToErase->getOperand(1); in tryFoldFoldableCopy()
1473 InstToErase->eraseFromParent(); in tryFoldFoldableCopy()
1475 InstToErase = nullptr; in tryFoldFoldableCopy()
1478 InstToErase = MRI->getVRegDef(SrcReg); in tryFoldFoldableCopy()
1479 if (!InstToErase || !TII->isFoldableCopy(*InstToErase)) in tryFoldFoldableCopy()
1483 if (InstToErase && InstToErase->isRegSequence() && in tryFoldFoldableCopy()
1484 MRI->use_nodbg_empty(InstToErase->getOperand(0).getReg())) { in tryFoldFoldableCopy()
1485 InstToErase->eraseFromParent(); in tryFoldFoldableCopy()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStructurizeCFG.cpp606 SmallVector<Instruction *> InstToErase; in simplifyConditions() local
617 InstToErase.push_back(cast<Instruction>(Cond)); in simplifyConditions()
622 for (auto *I : InstToErase) in simplifyConditions()