reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
486 assert((Rem->getOpcode() == Instruction::SRem || 487 Rem->getOpcode() == Instruction::URem) && 490 Type *RemTy = Rem->getType(); 499 return expandRemainder(Rem); 503 IRBuilder<> Builder(Rem); 511 if (Rem->getOpcode() == Instruction::SRem) { 512 ExtDividend = Builder.CreateSExt(Rem->getOperand(0), Int32Ty); 513 ExtDivisor = Builder.CreateSExt(Rem->getOperand(1), Int32Ty); 516 ExtDividend = Builder.CreateZExt(Rem->getOperand(0), Int32Ty); 517 ExtDivisor = Builder.CreateZExt(Rem->getOperand(1), Int32Ty); 522 Rem->replaceAllUsesWith(Trunc); 523 Rem->dropAllReferences(); 524 Rem->eraseFromParent();