reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
479 if (I->getOpcode() != Instruction::Add) 482 LLVM_DEBUG(dbgs() << "ARM CGP: Adjusting " << *I << "\n"); 483 assert((isa<ConstantInt>(I->getOperand(1)) && 484 cast<ConstantInt>(I->getOperand(1))->isNegative()) && 487 auto Const = cast<ConstantInt>(I->getOperand(1)); 489 Builder.SetInsertPoint(I); 490 Value *NewVal = Builder.CreateSub(I->getOperand(0), NewConst); 492 NewInst->copyIRFlags(I); 495 InstsToRemove.insert(I); 496 I->replaceAllUsesWith(NewVal);