Lines Matching defs:V

134 static bool isSameCompare(Value *V, CmpInst::Predicate Pred, Value *LHS,  in isSameCompare()
199 if (Value *V = simplifyAndInst(Cond, TCmp, Q, MaxRecurse)) in handleOtherCmpSelSimplifications() local
204 if (Value *V = simplifyOrInst(Cond, FCmp, Q, MaxRecurse)) in handleOtherCmpSelSimplifications() local
209 if (Value *V = simplifyXorInst( in handleOtherCmpSelSimplifications() local
216 static bool valueDominatesPHI(Value *V, PHINode *P, const DominatorTree *DT) { in valueDominatesPHI()
238 static Value *expandBinOp(Instruction::BinaryOps Opcode, Value *V, in expandBinOp()
281 if (Value *V = expandBinOp(Opcode, L, R, OpcodeToExpand, Q, MaxRecurse)) in expandCommutativeBinOp() local
283 if (Value *V = expandBinOp(Opcode, R, L, OpcodeToExpand, Q, MaxRecurse)) in expandCommutativeBinOp() local
310 if (Value *V = simplifyBinOp(Opcode, B, C, Q, MaxRecurse)) { in simplifyAssociativeBinOp() local
330 if (Value *V = simplifyBinOp(Opcode, A, B, Q, MaxRecurse)) { in simplifyAssociativeBinOp() local
354 if (Value *V = simplifyBinOp(Opcode, C, A, Q, MaxRecurse)) { in simplifyAssociativeBinOp() local
374 if (Value *V = simplifyBinOp(Opcode, C, A, Q, MaxRecurse)) { in simplifyAssociativeBinOp() local
547 Value *V = PI == LHS in threadBinOpOverPHI() local
595 Value *V = simplifyCmpInst(Pred, Incoming, RHS, Q.getWithInstruction(InTI), in threadCmpOverPHI() local
682 if (Value *V = simplifyXorInst(Op0, Op1, Q, MaxRecurse - 1)) in simplifyAddInst() local
686 if (Value *V = in simplifyAddInst() local
716 static APInt stripAndComputeConstantOffsets(const DataLayout &DL, Value *&V, in stripAndComputeConstantOffsets()
833 if (Value *V = simplifyBinOp(Instruction::Sub, Y, Z, Q, MaxRecurse - 1)) in simplifySubInst() local
841 if (Value *V = simplifyBinOp(Instruction::Sub, X, Z, Q, MaxRecurse - 1)) in simplifySubInst() local
855 if (Value *V = simplifyBinOp(Instruction::Sub, X, Y, Q, MaxRecurse - 1)) in simplifySubInst() local
863 if (Value *V = simplifyBinOp(Instruction::Sub, X, Z, Q, MaxRecurse - 1)) in simplifySubInst() local
877 if (Value *V = simplifyBinOp(Instruction::Sub, Z, X, Q, MaxRecurse - 1)) in simplifySubInst() local
890 if (Value *V = simplifyBinOp(Instruction::Sub, X, Y, Q, MaxRecurse - 1)) in simplifySubInst() local
905 if (Value *V = simplifyXorInst(Op0, Op1, Q, MaxRecurse - 1)) in simplifySubInst() local
917 if (Value *V = simplifyByDomEq(Instruction::Sub, Op0, Op1, Q, MaxRecurse)) in simplifySubInst() local
964 if (Value *V = simplifyAndInst(Op0, Op1, Q, MaxRecurse - 1)) in simplifyMulInst() local
969 if (Value *V = in simplifyMulInst() local
974 if (Value *V = expandCommutativeBinOp(Instruction::Mul, Op0, Op1, in simplifyMulInst() local
981 if (Value *V = in simplifyMulInst() local
988 if (Value *V = in simplifyMulInst() local
1005 Value *V = simplifyICmpInst(Pred, LHS, RHS, Q, MaxRecurse); in isICmpTrue() local
1166 if (Value *V = simplifyByDomEq(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyDivRem() local
1172 if (Value *V = threadBinOpOverSelect(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyDivRem() local
1178 if (Value *V = threadBinOpOverPHI(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyDivRem() local
1191 if (Value *V = simplifyDivRem(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyDiv() local
1225 if (Value *V = simplifyDivRem(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyRem() local
1376 if (Value *V = threadBinOpOverSelect(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyShift() local
1382 if (Value *V = threadBinOpOverPHI(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyShift() local
1420 if (Value *V = in simplifyRightShift() local
1448 if (Value *V = in simplifyShlInst() local
1489 if (Value *V = simplifyRightShift(Instruction::LShr, Op0, Op1, IsExact, Q, in simplifyLShrInst() local
1526 if (Value *V = simplifyRightShift(Instruction::AShr, Op0, Op1, IsExact, Q, in simplifyAShrInst() local
1708 Value *V; in simplifyAndOfICmpsWithAdd() local
1799 Value *V; in simplifyOrOfICmpsWithAdd() local
1912 Value *V = nullptr; in simplifyAndOrOfCmps() local
2062 if (Value *V = in simplifyAndCommutative() local
2101 if (Value *V = simplifyLogicOfAddSub(Op0, Op1, Instruction::And)) in simplifyAndInst() local
2135 if (Value *V = simplifyAndOrOfCmps(Q, Op0, Op1, true)) in simplifyAndInst() local
2139 if (Value *V = in simplifyAndInst() local
2144 if (Value *V = expandCommutativeBinOp(Instruction::And, Op0, Op1, in simplifyAndInst() local
2149 if (Value *V = expandCommutativeBinOp(Instruction::And, Op0, Op1, in simplifyAndInst() local
2164 if (Value *V = in simplifyAndInst() local
2172 if (Value *V = in simplifyAndInst() local
2244 if (Value *V = simplifyByDomEq(Instruction::And, Op0, Op1, Q, MaxRecurse)) in simplifyAndInst() local
2371 if (Value *V = simplifyLogicOfAddSub(Op0, Op1, Instruction::Or)) in simplifyOrInst() local
2416 if (Value *V = in simplifyOrInst() local
2419 if (Value *V = in simplifyOrInst() local
2423 if (Value *V = simplifyAndOrOfCmps(Q, Op0, Op1, false)) in simplifyOrInst() local
2435 if (Value *V = in simplifyOrInst() local
2440 if (Value *V = expandCommutativeBinOp(Instruction::Or, Op0, Op1, in simplifyOrInst() local
2455 if (Value *V = in simplifyOrInst() local
2489 if (Value *V = threadBinOpOverPHI(Instruction::Or, Op0, Op1, Q, MaxRecurse)) in simplifyOrInst() local
2518 if (Value *V = simplifyByDomEq(Instruction::Or, Op0, Op1, Q, MaxRecurse)) in simplifyOrInst() local
2578 if (Value *V = simplifyLogicOfAddSub(Op0, Op1, Instruction::Xor)) in simplifyXorInst() local
2582 if (Value *V = in simplifyXorInst() local
2595 if (Value *V = simplifyByDomEq(Instruction::Xor, Op0, Op1, Q, MaxRecurse)) in simplifyXorInst() local
2612 static Value *extractEquivalentCondition(Value *V, CmpInst::Predicate Pred, in extractEquivalentCondition()
2631 static bool isAllocDisjoint(const Value *V) { in isAllocDisjoint()
2677 auto isByValArg = [](const Value *V) { in haveNonOverlappingStorage()
2781 auto *F = [](Value *V) -> Function * { in computePointerICmp()
2881 auto ExtractNotLHS = [](Value *V) -> Value * { in simplifyICmpOfBools()
3296 if (Value *V = simplifyICmpInst(Pred, A == RHS ? B : A, in simplifyICmpWithBinOp() local
3303 if (Value *V = in simplifyICmpWithBinOp() local
3332 if (Value *V = simplifyICmpInst(Pred, Y, Z, Q, MaxRecurse - 1)) in simplifyICmpWithBinOp() local
3338 if (Value *V = simplifyICmpWithBinOpOnLHS(Pred, LBO, RHS, Q, MaxRecurse)) in simplifyICmpWithBinOp() local
3342 if (Value *V = simplifyICmpWithBinOpOnLHS( in simplifyICmpWithBinOp() local
3412 if (Value *V = simplifyICmpInst(Pred, LBO->getOperand(1), in simplifyICmpWithBinOp() local
3459 if (Value *V = simplifyICmpInst(Pred, LBO->getOperand(0), in simplifyICmpWithBinOp() local
3467 if (Value *V = simplifyICmpInst(Pred, LBO->getOperand(0), in simplifyICmpWithBinOp() local
3474 if (Value *V = simplifyICmpInst(Pred, LBO->getOperand(0), in simplifyICmpWithBinOp() local
3485 if (Value *V = simplifyICmpInst(Pred, LBO->getOperand(0), in simplifyICmpWithBinOp() local
3545 if (Value *V = extractEquivalentCondition(LHS, EqP, A, B)) in simplifyICmpWithMinMax() local
3547 if (Value *V = extractEquivalentCondition(RHS, EqP, A, B)) in simplifyICmpWithMinMax() local
3551 if (Value *V = simplifyICmpInst(EqP, A, B, Q, MaxRecurse - 1)) in simplifyICmpWithMinMax() local
3559 if (Value *V = extractEquivalentCondition(LHS, InvEqP, A, B)) in simplifyICmpWithMinMax() local
3561 if (Value *V = extractEquivalentCondition(RHS, InvEqP, A, B)) in simplifyICmpWithMinMax() local
3565 if (Value *V = simplifyICmpInst(InvEqP, A, B, Q, MaxRecurse - 1)) in simplifyICmpWithMinMax() local
3619 if (Value *V = extractEquivalentCondition(LHS, EqP, A, B)) in simplifyICmpWithMinMax() local
3621 if (Value *V = extractEquivalentCondition(RHS, EqP, A, B)) in simplifyICmpWithMinMax() local
3625 if (Value *V = simplifyICmpInst(EqP, A, B, Q, MaxRecurse - 1)) in simplifyICmpWithMinMax() local
3633 if (Value *V = extractEquivalentCondition(LHS, InvEqP, A, B)) in simplifyICmpWithMinMax() local
3635 if (Value *V = extractEquivalentCondition(RHS, InvEqP, A, B)) in simplifyICmpWithMinMax() local
3639 if (Value *V = simplifyICmpInst(InvEqP, A, B, Q, MaxRecurse - 1)) in simplifyICmpWithMinMax() local
3736 static std::optional<ConstantRange> getRange(Value *V, in getRange()
3784 if (Value *V = simplifyICmpOfBools(Pred, LHS, RHS, Q)) in simplifyICmpInst() local
3789 if (Value *V = simplifyICmpWithZero(Pred, LHS, RHS, Q)) in simplifyICmpInst() local
3792 if (Value *V = simplifyICmpWithConstant(Pred, LHS, RHS, Q.IIQ)) in simplifyICmpInst() local
3819 if (Value *V = simplifyICmpInst(Pred, SrcOp, in simplifyICmpInst() local
3826 if (Value *V = simplifyICmpInst(Pred, SrcOp, RI->getOperand(0), Q, in simplifyICmpInst() local
3838 if (Value *V = in simplifyICmpInst() local
3874 if (Value *V = simplifyICmpInst(ICmpInst::getUnsignedPredicate(Pred), in simplifyICmpInst() local
3918 if (Value *V = simplifyICmpInst(Pred, SrcOp, RI->getOperand(0), Q, in simplifyICmpInst() local
3951 if (Value *V = in simplifyICmpInst() local
3985 if (Value *V = simplifyICmpInst(ICmpInst::ICMP_SLT, SrcOp, in simplifyICmpInst() local
3994 if (Value *V = simplifyICmpInst(ICmpInst::ICMP_SGE, SrcOp, in simplifyICmpInst() local
4013 if (Value *V = simplifyICmpWithBinOp(Pred, LHS, RHS, Q, MaxRecurse)) in simplifyICmpInst() local
4016 if (Value *V = simplifyICmpWithMinMax(Pred, LHS, RHS, Q, MaxRecurse)) in simplifyICmpInst() local
4019 if (Value *V = simplifyICmpWithIntrinsicOnLHS(Pred, LHS, RHS)) in simplifyICmpInst() local
4021 if (Value *V = simplifyICmpWithIntrinsicOnLHS( in simplifyICmpInst() local
4025 if (Value *V = simplifyICmpWithDominatingAssume(Pred, LHS, RHS, Q)) in simplifyICmpInst() local
4049 if (Value *V = threadCmpOverSelect(Pred, LHS, RHS, Q, MaxRecurse)) in simplifyICmpInst() local
4055 if (Value *V = threadCmpOverPHI(Pred, LHS, RHS, Q, MaxRecurse)) in simplifyICmpInst() local
4284 if (Value *V = threadCmpOverSelect(Pred, LHS, RHS, Q, MaxRecurse)) in simplifyFCmpInst() local
4290 if (Value *V = threadCmpOverPHI(Pred, LHS, RHS, Q, MaxRecurse)) in simplifyFCmpInst() local
4301 static Value *simplifyWithOpReplaced(Value *V, Value *Op, Value *RepOp, in simplifyWithOpReplaced()
4477 Value *llvm::simplifyWithOpReplaced(Value *V, Value *Op, Value *RepOp, in simplifyWithOpReplaced()
4648 if (Value *V = simplifyCmpSelOfMaxMin(CmpLHS, CmpRHS, Pred, TrueVal, FalseVal)) in simplifySelectWithICmpCond() local
4678 if (Value *V = simplifySelectBitTest(TrueVal, FalseVal, X, Y, in simplifySelectWithICmpCond() local
4717 if (Value *V = in simplifySelectWithICmpCond() local
4725 if (Value *V = simplifySelectWithICmpEq(CmpLHS, CmpRHS, TrueVal, FalseVal, in simplifySelectWithICmpCond() local
4728 if (Value *V = simplifySelectWithICmpEq(CmpRHS, CmpLHS, TrueVal, FalseVal, in simplifySelectWithICmpCond() local
4738 if (Value *V = simplifySelectWithICmpEq(X, CmpRHS, TrueVal, FalseVal, Q, in simplifySelectWithICmpCond() local
4741 if (Value *V = simplifySelectWithICmpEq(Y, CmpRHS, TrueVal, FalseVal, Q, in simplifySelectWithICmpCond() local
4750 if (Value *V = simplifySelectWithICmpEq(X, CmpRHS, TrueVal, FalseVal, Q, in simplifySelectWithICmpCond() local
4753 if (Value *V = simplifySelectWithICmpEq(Y, CmpRHS, TrueVal, FalseVal, Q, in simplifySelectWithICmpCond() local
4955 if (Value *V = in simplifySelectInst() local
4959 if (Value *V = simplifySelectWithFCmp(Cond, TrueVal, FalseVal, Q)) in simplifySelectInst() local
4962 if (Value *V = foldSelectWithBinaryOp(Cond, TrueVal, FalseVal)) in simplifySelectInst() local
5006 all_of(Indices, [](const auto *V) { return match(V, m_Zero()); })) in simplifyGEPInst()
5012 any_of(Indices, [](const auto *V) { return isa<PoisonValue>(V); })) in simplifyGEPInst()
5020 SrcTy->isScalableTy() || any_of(Indices, [](const Value *V) { in simplifyGEPInst()
5101 !all_of(Indices, [](Value *V) { return isa<Constant>(V); })) in simplifyGEPInst()
5615 if (any_of(Ops, [](Value *V) { return match(V, m_Poison()); })) in simplifyFPOp()
6541 if (Value *V = foldMinMaxSharedOp(IID, Op0, Op1)) in simplifyBinaryIntrinsic() local
6543 if (Value *V = foldMinMaxSharedOp(IID, Op1, Op0)) in simplifyBinaryIntrinsic() local
6729 if (Value *V = foldMinimumMaximumSharedOp(IID, Op0, Op1)) in simplifyBinaryIntrinsic() local
6731 if (Value *V = foldMinimumMaximumSharedOp(IID, Op1, Op0)) in simplifyBinaryIntrinsic() local
6829 if (Value *V = simplifyFPOp(Args, {}, Q, *FPI->getExceptionBehavior(), in simplifyIntrinsic() local
6836 if (Value *V = simplifyFPOp(Args, {}, Q, fp::ebIgnore, in simplifyIntrinsic() local
6984 if (Value *V = tryConstantFoldCall(Call, Callee, Args, Q)) in simplifyCall() local
6998 if (Value *V = tryConstantFoldCall(Call, Call->getCalledOperand(), Args, Q)) in simplifyConstrainedFPCall() local
7069 if (llvm::all_of(NewOps, [](Value *V) { return isa<Constant>(V); })) { in simplifyInstructionWithOperands()
7072 [](Value *V) { return cast<Constant>(V); }); in simplifyInstructionWithOperands()