Home
last modified time | relevance | path

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

12

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp844 Value *CondVal = SI.getCondition(); in foldAddSubSelect() local
894 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect()
913 Value *CondVal = SI.getCondition(); in visitSelectInst() local
919 SimplifySelectInst(CondVal, TrueVal, FalseVal, DL, TLI, DT, AC)) in visitSelectInst()
923 TrueVal->getType() == CondVal->getType()) { in visitSelectInst()
926 return BinaryOperator::CreateOr(CondVal, FalseVal); in visitSelectInst()
930 Value *NotCond = Builder->CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
935 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
939 Value *NotCond = Builder->CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
945 if (CondVal == TrueVal) in visitSelectInst()
[all …]
DInstructionCombining.cpp2992 bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue(); in AddReachableCodeToWorklist() local
2993 BasicBlock *ReachableBB = BI->getSuccessor(!CondVal); in AddReachableCodeToWorklist()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSelect.cpp650 Value *CondVal = SI.getCondition(); in visitSelectInst() local
654 if (Value *V = SimplifySelectInst(CondVal, TrueVal, FalseVal, TD)) in visitSelectInst()
661 return BinaryOperator::CreateOr(CondVal, FalseVal); in visitSelectInst()
664 Value *NotCond = Builder->CreateNot(CondVal, "not."+CondVal->getName()); in visitSelectInst()
669 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
672 Value *NotCond = Builder->CreateNot(CondVal, "not."+CondVal->getName()); in visitSelectInst()
678 if (CondVal == TrueVal) in visitSelectInst()
679 return BinaryOperator::CreateOr(CondVal, FalseVal); in visitSelectInst()
680 else if (CondVal == FalseVal) in visitSelectInst()
681 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
[all …]
DInstructionCombining.cpp1862 bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue(); in AddReachableCodeToWorklist() local
1863 BasicBlock *ReachableBB = BI->getSuccessor(!CondVal); in AddReachableCodeToWorklist()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp1163 Value *CondVal = SI.getCondition(); in foldAddSubSelect() local
1213 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect()
1295 Value *CondVal = SI.getCondition(); in canonicalizeSelectToShuffle() local
1297 if (!CondVal->getType()->isVectorTy() || !match(CondVal, m_Constant(CondC))) in canonicalizeSelectToShuffle()
1300 unsigned NumElts = CondVal->getType()->getVectorNumElements(); in canonicalizeSelectToShuffle()
1303 Type *Int32Ty = Type::getInt32Ty(CondVal->getContext()); in canonicalizeSelectToShuffle()
1507 Value *CondVal = SI.getCondition(); in visitSelectInst() local
1528 if (Value *V = SimplifySelectInst(CondVal, TrueVal, FalseVal, in visitSelectInst()
1540 if (match(CondVal, m_OneUse(m_ICmp(Pred, m_Value(), m_Value()))) && in visitSelectInst()
1543 CmpInst *Cond = cast<CmpInst>(CondVal); in visitSelectInst()
[all …]
DInstructionCombining.cpp3189 bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue(); in AddReachableCodeToWorklist() local
3190 BasicBlock *ReachableBB = BI->getSuccessor(!CondVal); in AddReachableCodeToWorklist()
/external/syzkaller/vendor/golang.org/x/oauth2/
Doauth2.go132 "redirect_uri": internal.CondVal(c.RedirectURL),
133 "scope": internal.CondVal(strings.Join(c.Scopes, " ")),
134 "state": internal.CondVal(state),
164 "scope": internal.CondVal(strings.Join(c.Scopes, " ")),
182 "redirect_uri": internal.CondVal(c.RedirectURL),
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp1092 Constant *CondVal = nullptr; in TryTrivialLoopUnswitch() local
1114 CondVal = ConstantInt::getTrue(Context); in TryTrivialLoopUnswitch()
1117 CondVal = ConstantInt::getFalse(Context); in TryTrivialLoopUnswitch()
1128 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, LoopExitBB, in TryTrivialLoopUnswitch()
1160 CondVal = CaseVal; in TryTrivialLoopUnswitch()
1170 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, LoopExitBB, in TryTrivialLoopUnswitch()
1174 BranchesInfo.setUnswitched(SI, CondVal); in TryTrivialLoopUnswitch()
DNewGVN.cpp2531 auto *CondVal = cast<ConstantInt>(CondEvaluated); in processOutgoingEdges() local
2533 auto Case = *SI->findCaseValue(CondVal); in processOutgoingEdges()
/external/syzkaller/vendor/golang.org/x/oauth2/internal/
Doauth2.go71 func CondVal(v string) []string { func
/external/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp922 Constant *CondVal = nullptr; in TryTrivialLoopUnswitch() local
944 CondVal = ConstantInt::getTrue(Context); in TryTrivialLoopUnswitch()
947 CondVal = ConstantInt::getFalse(Context); in TryTrivialLoopUnswitch()
955 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, LoopExitBB, in TryTrivialLoopUnswitch()
988 CondVal = CaseVal; in TryTrivialLoopUnswitch()
998 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, LoopExitBB, in TryTrivialLoopUnswitch()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopUnswitch.cpp422 Constant *CondVal = 0; in UnswitchIfProfitable() local
424 if (IsTrivialUnswitchCondition(LoopCond, &CondVal, &ExitBlock)) { in UnswitchIfProfitable()
427 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, ExitBlock); in UnswitchIfProfitable()
/external/swiftshader/third_party/subzero/src/
DPNaClTranslator.cpp2262 Ice::Operand *CondVal = getRelativeOperand(Values[2], BaseIndex); in ProcessRecord() local
2274 Ice::Type CondType = CondVal->getType(); in ProcessRecord()
2287 } else if (CondVal->getType() != Ice::IceType_i1) { in ProcessRecord()
2290 StrBuf << "Select condition " << CondVal in ProcessRecord()
2291 << " not type i1. Found: " << CondVal->getType(); in ProcessRecord()
2297 Func.get(), getNextInstVar(ThenType), CondVal, ThenVal, ElseVal)); in ProcessRecord()
/external/clang/lib/Sema/
DSemaStmt.cpp1240 auto CondVal = Cond.get(); in ActOnWhileStmt() local
1241 CheckBreakContinueBinding(CondVal.second); in ActOnWhileStmt()
1243 if (CondVal.second && in ActOnWhileStmt()
1244 !Diags.isIgnored(diag::warn_comma_operator, CondVal.second->getExprLoc())) in ActOnWhileStmt()
1245 CommaVisitor(*this).Visit(CondVal.second); in ActOnWhileStmt()
1253 WhileStmt(Context, CondVal.first, CondVal.second, Body, WhileLoc); in ActOnWhileStmt()
DAnalysisBasedWarnings.cpp651 const Stmt *Else, bool CondVal, in CreateIfFixit() argument
653 if (CondVal) { in CreateIfFixit()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp2210 Value *llvm::SimplifySelectInst(Value *CondVal, Value *TrueVal, Value *FalseVal, in SimplifySelectInst() argument
2214 if (ConstantInt *CB = dyn_cast<ConstantInt>(CondVal)) in SimplifySelectInst()
2221 if (isa<UndefValue>(CondVal)) { // select undef, X, Y -> X or Y in SimplifySelectInst()
DScalarEvolution.cpp4878 ConstantInt *CondVal = in ComputeExitCountExhaustively() local
4882 if (!CondVal) return getCouldNotCompute(); in ComputeExitCountExhaustively()
4884 if (CondVal->getValue() == uint64_t(ExitWhen)) { in ComputeExitCountExhaustively()
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/
DExecution.cpp667 GenericValue CondVal = getOperandValue(Cond, SF); in visitSwitchInst() local
675 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp3376 static Value *SimplifySelectInst(Value *CondVal, Value *TrueVal, in SimplifySelectInst() argument
3381 if (Constant *CB = dyn_cast<Constant>(CondVal)) { in SimplifySelectInst()
3392 if (isa<UndefValue>(CondVal)) { // select undef, X, Y -> X or Y in SimplifySelectInst()
3402 if (const auto *ICI = dyn_cast<ICmpInst>(CondVal)) { in SimplifySelectInst()
DScalarEvolution.cpp6570 auto *CondVal = dyn_cast_or_null<ConstantInt>( in computeExitCountExhaustively() local
6574 if (!CondVal) return getCouldNotCompute(); in computeExitCountExhaustively()
6576 if (CondVal->getValue() == uint64_t(ExitWhen)) { in computeExitCountExhaustively()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp898 GenericValue CondVal = getOperandValue(Cond, SF); in visitSwitchInst() local
904 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp898 GenericValue CondVal = getOperandValue(Cond, SF); in visitSwitchInst() local
904 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp1472 const Value *CondVal = I.getCondition(); in visitBr() local
1491 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(CondVal)) { in visitBr()
1526 CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()), in visitBr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInstructionSimplify.cpp3760 static Value *simplifySelectWithICmpCond(Value *CondVal, Value *TrueVal, in simplifySelectWithICmpCond() argument
3765 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) in simplifySelectWithICmpCond()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp1806 const Value *CondVal = I.getCondition(); in visitBr() local
1825 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(CondVal)) { in visitBr()
1862 CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()), in visitBr()

12