| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 733 auto *CondVal = SI.getCondition(); in foldSelectZeroOrMul() local 1764 Value *CondVal = SI.getCondition(); in foldAddSubSelect() local 1839 Value *CondVal = SI.getCondition(); in foldOverflowingAddSubSelect() local 2694 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst() 2699 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst() 2704 if (CondVal == TrueVal) in visitSelectInst() 2707 if (CondVal == FalseVal) in visitSelectInst() 2745 CondVal->hasOneUse()) { in visitSelectInst() 2751 CondVal->hasOneUse()) { in visitSelectInst() 2853 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst() [all …]
|
| H A D | InstructionCombining.cpp | 4467 bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue(); in prepareICWorklistFromFunction() local 4468 BasicBlock *ReachableBB = BI->getSuccessor(!CondVal); in prepareICWorklistFromFunction()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SCCPSolver.cpp | 1277 ValueLatticeElement CondVal = getValueState(OtherOp); in handleCallResult() local 1279 if (CondVal.isConstantRange() || CopyOfVal.isConstantRange()) { in handleCallResult() 1284 if (CondVal.isConstantRange()) in handleCallResult() 1286 Pred, CondVal.getConstantRange()); in handleCallResult() 1311 } else if (Pred == CmpInst::ICMP_EQ && CondVal.isConstant()) { in handleCallResult() 1315 mergeInValue(IV, &CB, CondVal); in handleCallResult() 1317 } else if (Pred == CmpInst::ICMP_NE && CondVal.isConstant()) { in handleCallResult() 1321 ValueLatticeElement::getNot(CondVal.getConstant())); in handleCallResult()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 1690 auto CondVal = Cond.get(); in ActOnWhileStmt() local 1691 CheckBreakContinueBinding(CondVal.second); in ActOnWhileStmt() 1693 if (CondVal.second && in ActOnWhileStmt() 1694 !Diags.isIgnored(diag::warn_comma_operator, CondVal.second->getExprLoc())) in ActOnWhileStmt() 1695 CommaVisitor(*this).Visit(CondVal.second); in ActOnWhileStmt() 1700 return WhileStmt::Create(Context, CondVal.first, CondVal.second, Body, in ActOnWhileStmt()
|
| H A D | AnalysisBasedWarnings.cpp | 788 const Stmt *Else, bool CondVal, in CreateIfFixit() argument 790 if (CondVal) { in CreateIfFixit()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 586 const Value *CondVal = BrInst.getCondition(); in translateBr() local 609 const Instruction *CondI = dyn_cast<Instruction>(CondVal); in translateBr() 646 SwitchCG::CaseBlock CB(CmpInst::ICMP_EQ, false, CondVal, in translateBr()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Execution.cpp | 953 GenericValue CondVal = getOperandValue(Cond, SF); in visitSwitchInst() local 959 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | OpenMPClause.cpp | 2420 if (Optional<APSInt> CondVal = in getAsVariantMatchInfo() local 2422 VMI.addTrait(CondVal->isZero() ? TraitProperty::user_condition_false in getAsVariantMatchInfo()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 4262 static Value *simplifySelectWithICmpCond(Value *CondVal, Value *TrueVal, in simplifySelectWithICmpCond() argument 4268 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) in simplifySelectWithICmpCond() 4283 matchDecomposedSelectPattern(cast<ICmpInst>(CondVal), TrueVal, FalseVal, in simplifySelectWithICmpCond() 4346 if (Pred == ICmpInst::ICMP_EQ && !CondVal->getType()->isVectorTy()) { in simplifySelectWithICmpCond()
|
| H A D | ScalarEvolution.cpp | 9431 auto *CondVal = dyn_cast_or_null<ConstantInt>( in computeExitCountExhaustively() local 9435 if (!CondVal) return getCouldNotCompute(); in computeExitCountExhaustively() 9437 if (CondVal->getValue() == uint64_t(ExitWhen)) { in computeExitCountExhaustively()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | NewGVN.cpp | 2504 auto *CondVal = cast<ConstantInt>(CondEvaluated); in processOutgoingEdges() local 2506 auto Case = *SI->findCaseValue(CondVal); in processOutgoingEdges()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntime.cpp | 6732 llvm::Value *CondVal = nullptr; in getNumThreads() local 6766 CondVal = CGF.EvaluateExprAsBool(Cond); in getNumThreads() 6803 if (CondVal) { in getNumThreads() 6804 NumThreads = CGF.Builder.CreateSelect(CondVal, NumThreads, in getNumThreads() 7038 llvm::Value *CondVal = nullptr; in emitNumThreadsForTargetDirective() local 7058 CondVal = CGF.EvaluateExprAsBool(Cond); in emitNumThreadsForTargetDirective() 7085 if (CondVal) in emitNumThreadsForTargetDirective() 7086 return Bld.CreateSelect(CondVal, ThreadLimitVal, Bld.getInt32(1)); in emitNumThreadsForTargetDirective()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 2381 const Value *CondVal = I.getCondition(); in visitBr() local 2401 const Instruction *BOp = dyn_cast<Instruction>(CondVal); in visitBr() 2446 CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()), in visitBr()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 26967 unsigned CondVal = Op.getConstantOperandVal(3); in LowerINTRINSIC_WO_CHAIN() local 26973 DAG.getTargetConstant(CondVal, dl, MVT::i8)); in LowerINTRINSIC_WO_CHAIN() 26976 DAG.getTargetConstant(CondVal, dl, MVT::i8), Sae); in LowerINTRINSIC_WO_CHAIN()
|