Lines Matching refs:NewOps

3915   SmallVector<Value *, 8> NewOps(I->getNumOperands());  in simplifyWithOpReplaced()  local
3916 transform(I->operands(), NewOps.begin(), in simplifyWithOpReplaced()
3927 if (NewOps[0] == ConstantExpr::getBinOpIdentity(Opcode, I->getType())) in simplifyWithOpReplaced()
3928 return NewOps[1]; in simplifyWithOpReplaced()
3929 if (NewOps[1] == ConstantExpr::getBinOpIdentity(Opcode, I->getType(), in simplifyWithOpReplaced()
3931 return NewOps[0]; in simplifyWithOpReplaced()
3935 NewOps[0] == NewOps[1]) in simplifyWithOpReplaced()
3936 return NewOps[0]; in simplifyWithOpReplaced()
3941 if (NewOps.size() == 2 && match(NewOps[1], m_Zero()) && in simplifyWithOpReplaced()
3943 return NewOps[0]; in simplifyWithOpReplaced()
3960 return PreventSelfSimplify(SimplifyBinOp(B->getOpcode(), NewOps[0], in simplifyWithOpReplaced()
3961 NewOps[1], Q, MaxRecurse - 1)); in simplifyWithOpReplaced()
3964 return PreventSelfSimplify(SimplifyCmpInst(C->getPredicate(), NewOps[0], in simplifyWithOpReplaced()
3965 NewOps[1], Q, MaxRecurse - 1)); in simplifyWithOpReplaced()
3969 NewOps, Q, MaxRecurse - 1)); in simplifyWithOpReplaced()
3973 SimplifySelectInst(NewOps[0], NewOps[1], NewOps[2], Q, in simplifyWithOpReplaced()
3981 for (Value *NewOp : NewOps) { in simplifyWithOpReplaced()
6083 ArrayRef<Value *> NewOps, in simplifyInstructionWithOperands() argument
6091 if (llvm::all_of(NewOps, [](Value *V) { return isa<Constant>(V); })) { in simplifyInstructionWithOperands()
6092 SmallVector<Constant *, 8> NewConstOps(NewOps.size()); in simplifyInstructionWithOperands()
6093 transform(NewOps, NewConstOps.begin(), in simplifyInstructionWithOperands()
6099 Result = SimplifyFNegInst(NewOps[0], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6102 Result = SimplifyFAddInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6106 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands()
6110 Result = SimplifyFSubInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6114 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands()
6118 Result = SimplifyFMulInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6121 Result = SimplifyMulInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6124 Result = SimplifySDivInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6127 Result = SimplifyUDivInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6130 Result = SimplifyFDivInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6133 Result = SimplifySRemInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6136 Result = SimplifyURemInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6139 Result = SimplifyFRemInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6143 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands()
6147 Result = SimplifyLShrInst(NewOps[0], NewOps[1], in simplifyInstructionWithOperands()
6151 Result = SimplifyAShrInst(NewOps[0], NewOps[1], in simplifyInstructionWithOperands()
6155 Result = SimplifyAndInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6158 Result = SimplifyOrInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6161 Result = SimplifyXorInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6164 Result = SimplifyICmpInst(cast<ICmpInst>(I)->getPredicate(), NewOps[0], in simplifyInstructionWithOperands()
6165 NewOps[1], Q); in simplifyInstructionWithOperands()
6168 Result = SimplifyFCmpInst(cast<FCmpInst>(I)->getPredicate(), NewOps[0], in simplifyInstructionWithOperands()
6169 NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6172 Result = SimplifySelectInst(NewOps[0], NewOps[1], NewOps[2], Q); in simplifyInstructionWithOperands()
6176 NewOps, Q); in simplifyInstructionWithOperands()
6181 Result = SimplifyInsertValueInst(NewOps[0], NewOps[1], IV->getIndices(), Q); in simplifyInstructionWithOperands()
6185 Result = SimplifyInsertElementInst(NewOps[0], NewOps[1], NewOps[2], Q); in simplifyInstructionWithOperands()
6190 Result = SimplifyExtractValueInst(NewOps[0], EVI->getIndices(), Q); in simplifyInstructionWithOperands()
6194 Result = SimplifyExtractElementInst(NewOps[0], NewOps[1], Q); in simplifyInstructionWithOperands()
6200 NewOps[0], NewOps[1], SVI->getShuffleMask(), SVI->getType(), Q); in simplifyInstructionWithOperands()
6204 Result = SimplifyPHINode(cast<PHINode>(I), NewOps, Q); in simplifyInstructionWithOperands()
6212 Result = llvm::SimplifyFreezeInst(NewOps[0], Q); in simplifyInstructionWithOperands()
6217 Result = SimplifyCastInst(I->getOpcode(), NewOps[0], I->getType(), Q); in simplifyInstructionWithOperands()
6224 Result = SimplifyLoadInst(cast<LoadInst>(I), NewOps[0], Q); in simplifyInstructionWithOperands()
6235 ArrayRef<Value *> NewOps, in SimplifyInstructionWithOperands() argument
6238 assert(NewOps.size() == I->getNumOperands() && in SimplifyInstructionWithOperands()
6240 return ::simplifyInstructionWithOperands(I, NewOps, SQ, ORE); in SimplifyInstructionWithOperands()