Searched refs:DeadInst (Results 1 - 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp118 Instruction *DeadInst = NowDeadInsts.pop_back_val(); local
124 MD.removeInstruction(DeadInst);
126 for (unsigned op = 0, e = DeadInst->getNumOperands(); op != e; ++op) {
127 Value *Op = DeadInst->getOperand(op);
128 DeadInst->setOperand(op, 0);
138 DeadInst->eraseFromParent();
140 if (ValueSet) ValueSet->remove(DeadInst);
H A DLoopIdiomRecognize.cpp143 Instruction *DeadInst = NowDeadInsts.pop_back_val(); local
147 SE.forgetValue(DeadInst);
149 for (unsigned op = 0, e = DeadInst->getNumOperands(); op != e; ++op) {
150 Value *Op = DeadInst->getOperand(op);
151 DeadInst->setOperand(op, 0);
161 DeadInst->eraseFromParent();

Completed in 119 milliseconds