Lines Matching refs:NewOps
4116 SmallVector<Value *, 8> NewOps(I->getNumOperands()); in simplifyWithOpReplaced() local
4117 transform(I->operands(), NewOps.begin(), in simplifyWithOpReplaced()
4128 if (NewOps[0] == ConstantExpr::getBinOpIdentity(Opcode, I->getType())) in simplifyWithOpReplaced()
4129 return NewOps[1]; in simplifyWithOpReplaced()
4130 if (NewOps[1] == ConstantExpr::getBinOpIdentity(Opcode, I->getType(), in simplifyWithOpReplaced()
4132 return NewOps[0]; in simplifyWithOpReplaced()
4136 NewOps[0] == NewOps[1]) in simplifyWithOpReplaced()
4137 return NewOps[0]; in simplifyWithOpReplaced()
4142 if (NewOps.size() == 2 && match(NewOps[1], m_Zero()) && in simplifyWithOpReplaced()
4144 return NewOps[0]; in simplifyWithOpReplaced()
4161 return PreventSelfSimplify(simplifyBinOp(B->getOpcode(), NewOps[0], in simplifyWithOpReplaced()
4162 NewOps[1], Q, MaxRecurse - 1)); in simplifyWithOpReplaced()
4165 return PreventSelfSimplify(simplifyCmpInst(C->getPredicate(), NewOps[0], in simplifyWithOpReplaced()
4166 NewOps[1], Q, MaxRecurse - 1)); in simplifyWithOpReplaced()
4170 GEP->getSourceElementType(), NewOps[0], makeArrayRef(NewOps).slice(1), in simplifyWithOpReplaced()
4175 NewOps[0], NewOps[1], NewOps[2], Q, MaxRecurse - 1)); in simplifyWithOpReplaced()
4182 for (Value *NewOp : NewOps) { in simplifyWithOpReplaced()
6294 ArrayRef<Value *> NewOps, in simplifyInstructionWithOperands() argument
6302 if (llvm::all_of(NewOps, [](Value *V) { return isa<Constant>(V); })) { in simplifyInstructionWithOperands()
6303 SmallVector<Constant *, 8> NewConstOps(NewOps.size()); in simplifyInstructionWithOperands()
6304 transform(NewOps, NewConstOps.begin(), in simplifyInstructionWithOperands()
6310 Result = simplifyFNegInst(NewOps[0], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6313 Result = simplifyFAddInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6317 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands()
6321 Result = simplifyFSubInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6325 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands()
6329 Result = simplifyFMulInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6332 Result = simplifyMulInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6335 Result = simplifySDivInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6338 Result = simplifyUDivInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6341 Result = simplifyFDivInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6344 Result = simplifySRemInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6347 Result = simplifyURemInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6350 Result = simplifyFRemInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6354 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands()
6358 Result = simplifyLShrInst(NewOps[0], NewOps[1], in simplifyInstructionWithOperands()
6362 Result = simplifyAShrInst(NewOps[0], NewOps[1], in simplifyInstructionWithOperands()
6366 Result = simplifyAndInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6369 Result = simplifyOrInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6372 Result = simplifyXorInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6375 Result = simplifyICmpInst(cast<ICmpInst>(I)->getPredicate(), NewOps[0], in simplifyInstructionWithOperands()
6376 NewOps[1], Q); in simplifyInstructionWithOperands()
6379 Result = simplifyFCmpInst(cast<FCmpInst>(I)->getPredicate(), NewOps[0], in simplifyInstructionWithOperands()
6380 NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6383 Result = simplifySelectInst(NewOps[0], NewOps[1], NewOps[2], Q); in simplifyInstructionWithOperands()
6388 simplifyGEPInst(GEPI->getSourceElementType(), NewOps[0], in simplifyInstructionWithOperands()
6389 makeArrayRef(NewOps).slice(1), GEPI->isInBounds(), Q); in simplifyInstructionWithOperands()
6394 Result = simplifyInsertValueInst(NewOps[0], NewOps[1], IV->getIndices(), Q); in simplifyInstructionWithOperands()
6398 Result = simplifyInsertElementInst(NewOps[0], NewOps[1], NewOps[2], Q); in simplifyInstructionWithOperands()
6403 Result = simplifyExtractValueInst(NewOps[0], EVI->getIndices(), Q); in simplifyInstructionWithOperands()
6407 Result = simplifyExtractElementInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6413 NewOps[0], NewOps[1], SVI->getShuffleMask(), SVI->getType(), Q); in simplifyInstructionWithOperands()
6417 Result = simplifyPHINode(cast<PHINode>(I), NewOps, Q); in simplifyInstructionWithOperands()
6425 Result = llvm::simplifyFreezeInst(NewOps[0], Q); in simplifyInstructionWithOperands()
6430 Result = simplifyCastInst(I->getOpcode(), NewOps[0], I->getType(), Q); in simplifyInstructionWithOperands()
6437 Result = simplifyLoadInst(cast<LoadInst>(I), NewOps[0], Q); in simplifyInstructionWithOperands()
6448 ArrayRef<Value *> NewOps, in simplifyInstructionWithOperands() argument
6451 assert(NewOps.size() == I->getNumOperands() && in simplifyInstructionWithOperands()
6453 return ::simplifyInstructionWithOperands(I, NewOps, SQ, ORE); in simplifyInstructionWithOperands()