Home
last modified time | relevance | path

Searched refs:CondVal (Results 1 – 15 of 15) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp757 auto *CondVal = SI.getCondition(); in foldSelectZeroOrMul() local
766 if (!match(CondVal, m_ICmp(Predicate, m_Value(X), m_Zero())) || in foldSelectZeroOrMul()
783 auto *ZeroC = cast<Constant>(cast<Instruction>(CondVal)->getOperand(1)); in foldSelectZeroOrMul()
1822 Value *CondVal = SI.getCondition(); in foldAddSubSelect() local
1872 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect()
1897 Value *CondVal = SI.getCondition(); in foldOverflowingAddSubSelect() local
1902 if (!match(CondVal, m_ExtractValue<1>(m_WithOverflowInst(II))) || in foldOverflowingAddSubSelect()
2074 Value *CondVal = SI.getCondition(); in canonicalizeSelectToShuffle() local
2076 auto *CondValTy = dyn_cast<FixedVectorType>(CondVal->getType()); in canonicalizeSelectToShuffle()
2077 if (!CondValTy || !match(CondVal, m_Constant(CondC))) in canonicalizeSelectToShuffle()
[all …]
H A DInstructionCombining.cpp4525 bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue(); in prepareICWorklistFromFunction() local
4526 BasicBlock *ReachableBB = BI->getSuccessor(!CondVal); in prepareICWorklistFromFunction()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp1569 ValueLatticeElement CondVal = getValueState(OtherOp); in handleCallResult() local
1571 if (CondVal.isConstantRange() || CopyOfVal.isConstantRange()) { in handleCallResult()
1576 if (CondVal.isConstantRange()) in handleCallResult()
1578 Pred, CondVal.getConstantRange()); in handleCallResult()
1601 (CondVal.isConstant() || CondVal.isNotConstant())) { in handleCallResult()
1605 mergeInValue(IV, &CB, CondVal); in handleCallResult()
1607 } else if (Pred == CmpInst::ICMP_NE && CondVal.isConstant()) { in handleCallResult()
1611 ValueLatticeElement::getNot(CondVal.getConstant())); in handleCallResult()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DLazyValueInfo.cpp1173 Value *Val, CondValue CondVal, bool isRevisit, in getValueFromConditionImpl() argument
1177 Value *Cond = CondVal.getPointer(); in getValueFromConditionImpl()
1178 bool isTrueDest = CondVal.getInt(); in getValueFromConditionImpl()
1665 std::optional<ValueLatticeElement> CondVal; in getConstantRangeAtUse() local
1669 CondVal = getValueFromCondition(V, SI->getCondition(), true); in getConstantRangeAtUse()
1671 CondVal = getValueFromCondition(V, SI->getCondition(), false); in getConstantRangeAtUse()
1674 CondVal = in getConstantRangeAtUse()
1677 if (CondVal && CondVal->isConstantRange()) in getConstantRangeAtUse()
1678 CR = CR.intersectWith(CondVal->getConstantRange()); in getConstantRangeAtUse()
H A DInstructionSimplify.cpp4410 static Value *simplifySelectWithICmpCond(Value *CondVal, Value *TrueVal, in simplifySelectWithICmpCond() argument
4416 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) in simplifySelectWithICmpCond()
4434 matchDecomposedSelectPattern(cast<ICmpInst>(CondVal), TrueVal, FalseVal, in simplifySelectWithICmpCond()
H A DScalarEvolution.cpp9698 auto *CondVal = dyn_cast_or_null<ConstantInt>( in computeExitCountExhaustively() local
9702 if (!CondVal) return getCouldNotCompute(); in computeExitCountExhaustively()
9704 if (CondVal->getValue() == uint64_t(ExitWhen)) { in computeExitCountExhaustively()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaStmt.cpp1690 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 DAnalysisBasedWarnings.cpp792 const Stmt *Else, bool CondVal, in CreateIfFixit() argument
794 if (CondVal) { in CreateIfFixit()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp591 const Value *CondVal = BrInst.getCondition(); in translateBr() local
614 const Instruction *CondI = dyn_cast<Instruction>(CondVal); in translateBr()
651 SwitchCG::CaseBlock CB(CmpInst::ICMP_EQ, false, CondVal, in translateBr()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp953 GenericValue CondVal = getOperandValue(Cond, SF); in visitSwitchInst() local
959 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DOpenMPClause.cpp2481 if (std::optional<APSInt> CondVal = in getAsVariantMatchInfo() local
2483 VMI.addTrait(CondVal->isZero() ? TraitProperty::user_condition_false in getAsVariantMatchInfo()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DNewGVN.cpp2511 auto *CondVal = cast<ConstantInt>(CondEvaluated); in processOutgoingEdges() local
2513 auto Case = *SI->findCaseValue(CondVal); in processOutgoingEdges()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp6354 llvm::Value *CondVal = nullptr; in getNumThreads() local
6388 CondVal = CGF.EvaluateExprAsBool(Cond); in getNumThreads()
6425 if (CondVal) { in getNumThreads()
6426 NumThreads = CGF.Builder.CreateSelect(CondVal, NumThreads, in getNumThreads()
6667 llvm::Value *CondVal = nullptr; in emitNumThreadsForTargetDirective() local
6687 CondVal = CGF.EvaluateExprAsBool(Cond); in emitNumThreadsForTargetDirective()
6714 if (CondVal) in emitNumThreadsForTargetDirective()
6715 return Bld.CreateSelect(CondVal, ThreadLimitVal, Bld.getInt32(1)); in emitNumThreadsForTargetDirective()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2437 const Value *CondVal = I.getCondition(); in visitBr() local
2457 const Instruction *BOp = dyn_cast<Instruction>(CondVal); in visitBr()
2502 CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()), in visitBr()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp27419 unsigned CondVal = Op.getConstantOperandVal(3); in LowerINTRINSIC_WO_CHAIN() local
27425 DAG.getTargetConstant(CondVal, dl, MVT::i8)); in LowerINTRINSIC_WO_CHAIN()
27428 DAG.getTargetConstant(CondVal, dl, MVT::i8), Sae); in LowerINTRINSIC_WO_CHAIN()