Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIFoldOperands.cpp1797 auto *InstToErase = &MI; in runOnMachineFunction() local
1798 while (MRI->use_nodbg_empty(InstToErase->getOperand(0).getReg())) { in runOnMachineFunction()
1799 auto &SrcOp = InstToErase->getOperand(1); in runOnMachineFunction()
1801 InstToErase->eraseFromParent(); in runOnMachineFunction()
1803 InstToErase = nullptr; in runOnMachineFunction()
1806 InstToErase = MRI->getVRegDef(SrcReg); in runOnMachineFunction()
1807 if (!InstToErase || !TII->isFoldableCopy(*InstToErase)) in runOnMachineFunction()
1810 if (InstToErase && InstToErase->isRegSequence() && in runOnMachineFunction()
1811 MRI->use_nodbg_empty(InstToErase->getOperand(0).getReg())) { in runOnMachineFunction()
1812 InstToErase->eraseFromParent(); in runOnMachineFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DStructurizeCFG.cpp589 SmallVector<Instruction *> InstToErase; in simplifyConditions() local
600 InstToErase.push_back(cast<Instruction>(Cond)); in simplifyConditions()
605 for (auto *I : InstToErase) in simplifyConditions()