Lines Matching refs:NewOps

78                                               ArrayRef<Value *> NewOps,
4330 SmallVector<Value *, 8> NewOps; in simplifyWithOpReplaced() local
4335 NewOps.push_back(NewInstOp); in simplifyWithOpReplaced()
4338 NewOps.push_back(InstOp); in simplifyWithOpReplaced()
4353 if (NewOps[0] == ConstantExpr::getBinOpIdentity(Opcode, I->getType())) in simplifyWithOpReplaced()
4354 return NewOps[1]; in simplifyWithOpReplaced()
4355 if (NewOps[1] == ConstantExpr::getBinOpIdentity(Opcode, I->getType(), in simplifyWithOpReplaced()
4357 return NewOps[0]; in simplifyWithOpReplaced()
4361 NewOps[0] == NewOps[1]) { in simplifyWithOpReplaced()
4370 return NewOps[0]; in simplifyWithOpReplaced()
4377 NewOps[0] == RepOp && NewOps[1] == RepOp) in simplifyWithOpReplaced()
4389 if ((NewOps[0] == Absorber || NewOps[1] == Absorber) && in simplifyWithOpReplaced()
4397 if (NewOps.size() == 2 && match(NewOps[1], m_Zero())) in simplifyWithOpReplaced()
4398 return NewOps[0]; in simplifyWithOpReplaced()
4415 ::simplifyInstructionWithOperands(I, NewOps, Q, MaxRecurse)); in simplifyWithOpReplaced()
4421 for (Value *NewOp : NewOps) { in simplifyWithOpReplaced()
6974 ArrayRef<Value *> NewOps, in simplifyInstructionWithOperands() argument
6985 if (llvm::all_of(NewOps, [](Value *V) { return isa<Constant>(V); })) { in simplifyInstructionWithOperands()
6986 SmallVector<Constant *, 8> NewConstOps(NewOps.size()); in simplifyInstructionWithOperands()
6987 transform(NewOps, NewConstOps.begin(), in simplifyInstructionWithOperands()
6993 return simplifyFNegInst(NewOps[0], I->getFastMathFlags(), Q, MaxRecurse); in simplifyInstructionWithOperands()
6995 return simplifyFAddInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
6999 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands()
7002 return simplifyFSubInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7006 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands()
7009 return simplifyFMulInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7013 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands()
7016 return simplifySDivInst(NewOps[0], NewOps[1], in simplifyInstructionWithOperands()
7020 return simplifyUDivInst(NewOps[0], NewOps[1], in simplifyInstructionWithOperands()
7024 return simplifyFDivInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7027 return simplifySRemInst(NewOps[0], NewOps[1], Q, MaxRecurse); in simplifyInstructionWithOperands()
7029 return simplifyURemInst(NewOps[0], NewOps[1], Q, MaxRecurse); in simplifyInstructionWithOperands()
7031 return simplifyFRemInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7035 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands()
7038 return simplifyLShrInst(NewOps[0], NewOps[1], in simplifyInstructionWithOperands()
7042 return simplifyAShrInst(NewOps[0], NewOps[1], in simplifyInstructionWithOperands()
7046 return simplifyAndInst(NewOps[0], NewOps[1], Q, MaxRecurse); in simplifyInstructionWithOperands()
7048 return simplifyOrInst(NewOps[0], NewOps[1], Q, MaxRecurse); in simplifyInstructionWithOperands()
7050 return simplifyXorInst(NewOps[0], NewOps[1], Q, MaxRecurse); in simplifyInstructionWithOperands()
7052 return simplifyICmpInst(cast<ICmpInst>(I)->getPredicate(), NewOps[0], in simplifyInstructionWithOperands()
7053 NewOps[1], Q, MaxRecurse); in simplifyInstructionWithOperands()
7055 return simplifyFCmpInst(cast<FCmpInst>(I)->getPredicate(), NewOps[0], in simplifyInstructionWithOperands()
7056 NewOps[1], I->getFastMathFlags(), Q, MaxRecurse); in simplifyInstructionWithOperands()
7058 return simplifySelectInst(NewOps[0], NewOps[1], NewOps[2], Q, MaxRecurse); in simplifyInstructionWithOperands()
7062 return simplifyGEPInst(GEPI->getSourceElementType(), NewOps[0], in simplifyInstructionWithOperands()
7063 ArrayRef(NewOps).slice(1), GEPI->isInBounds(), Q, in simplifyInstructionWithOperands()
7068 return simplifyInsertValueInst(NewOps[0], NewOps[1], IV->getIndices(), Q, in simplifyInstructionWithOperands()
7072 return simplifyInsertElementInst(NewOps[0], NewOps[1], NewOps[2], Q); in simplifyInstructionWithOperands()
7075 return simplifyExtractValueInst(NewOps[0], EVI->getIndices(), Q, in simplifyInstructionWithOperands()
7079 return simplifyExtractElementInst(NewOps[0], NewOps[1], Q, MaxRecurse); in simplifyInstructionWithOperands()
7082 return simplifyShuffleVectorInst(NewOps[0], NewOps[1], in simplifyInstructionWithOperands()
7087 return simplifyPHINode(cast<PHINode>(I), NewOps, Q); in simplifyInstructionWithOperands()
7090 cast<CallInst>(I), NewOps.back(), in simplifyInstructionWithOperands()
7091 NewOps.drop_back(1 + cast<CallInst>(I)->getNumTotalBundleOperands()), Q); in simplifyInstructionWithOperands()
7093 return llvm::simplifyFreezeInst(NewOps[0], Q); in simplifyInstructionWithOperands()
7097 return simplifyCastInst(I->getOpcode(), NewOps[0], I->getType(), Q, in simplifyInstructionWithOperands()
7103 return simplifyLoadInst(cast<LoadInst>(I), NewOps[0], Q); in simplifyInstructionWithOperands()
7108 ArrayRef<Value *> NewOps, in simplifyInstructionWithOperands() argument
7110 assert(NewOps.size() == I->getNumOperands() && in simplifyInstructionWithOperands()
7112 return ::simplifyInstructionWithOperands(I, NewOps, SQ, RecursionLimit); in simplifyInstructionWithOperands()