Lines Matching refs:Instr
1829 bool GVN::replaceOperandsForInBlockEquality(Instruction *Instr) const {
1831 for (unsigned OpNum = 0; OpNum < Instr->getNumOperands(); ++OpNum) {
1832 Value *Operand = Instr->getOperand(OpNum);
1836 << *it->second << " in instruction " << *Instr << '\n');
1837 Instr->setOperand(OpNum, it->second);
2255 bool GVN::performScalarPREInsertion(Instruction *Instr, BasicBlock *Pred,
2262 for (unsigned i = 0, e = Instr->getNumOperands(); i != e; ++i) {
2263 Value *Op = Instr->getOperand(i);
2277 Instr->setOperand(i, V);
2290 Instr->insertBefore(Pred->getTerminator());
2291 Instr->setName(Instr->getName() + ".pre");
2292 Instr->setDebugLoc(Instr->getDebugLoc());
2294 unsigned Num = VN.lookupOrAdd(Instr);
2295 VN.add(Instr, Num);
2298 addToLeaderTable(Num, Instr, Pred);