/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 844 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 …]
|
D | InstructionCombining.cpp | 2992 bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue(); in AddReachableCodeToWorklist() local 2993 BasicBlock *ReachableBB = BI->getSuccessor(!CondVal); in AddReachableCodeToWorklist()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 1163 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 …]
|
D | InstructionCombining.cpp | 3189 bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue(); in AddReachableCodeToWorklist() local 3190 BasicBlock *ReachableBB = BI->getSuccessor(!CondVal); in AddReachableCodeToWorklist()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 1092 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()
|
D | NewGVN.cpp | 2531 auto *CondVal = cast<ConstantInt>(CondEvaluated); in processOutgoingEdges() local 2533 auto Case = *SI->findCaseValue(CondVal); in processOutgoingEdges()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 922 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/subzero/src/ |
D | PNaClTranslator.cpp | 2262 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/ |
D | SemaStmt.cpp | 1240 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()
|
D | AnalysisBasedWarnings.cpp | 651 const Stmt *Else, bool CondVal, in CreateIfFixit() argument 653 if (CondVal) { in CreateIfFixit()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 3376 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()
|
D | ScalarEvolution.cpp | 6570 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/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 898 GenericValue CondVal = getOperandValue(Cond, SF); in visitSwitchInst() local 904 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 898 GenericValue CondVal = getOperandValue(Cond, SF); in visitSwitchInst() local 904 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 3760 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()
|
D | ScalarEvolution.cpp | 7922 auto *CondVal = dyn_cast_or_null<ConstantInt>( in computeExitCountExhaustively() local 7926 if (!CondVal) return getCouldNotCompute(); in computeExitCountExhaustively() 7928 if (CondVal->getValue() == uint64_t(ExitWhen)) { in computeExitCountExhaustively()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 1806 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()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 1987 const Value *CondVal = I.getCondition(); in visitBr() local 2005 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(CondVal)) { in visitBr() 2043 CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()), in visitBr()
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 17818 unsigned CondVal = cast<ConstantSDNode>(Op.getOperand(3))->getZExtValue(); in LowerINTRINSIC_WO_CHAIN() local 17825 DAG.getConstant(CondVal, dl, MVT::i8)); in LowerINTRINSIC_WO_CHAIN() 17828 DAG.getConstant(CondVal, dl, MVT::i8), Sae); in LowerINTRINSIC_WO_CHAIN()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 20928 unsigned CondVal = cast<ConstantSDNode>(Op.getOperand(3))->getZExtValue(); in LowerINTRINSIC_WO_CHAIN() local 20934 DAG.getConstant(CondVal, dl, MVT::i8)); in LowerINTRINSIC_WO_CHAIN() 20937 DAG.getConstant(CondVal, dl, MVT::i8), Sae); in LowerINTRINSIC_WO_CHAIN()
|