/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/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 650 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 …]
|
D | InstructionCombining.cpp | 1862 bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue(); in AddReachableCodeToWorklist() local 1863 BasicBlock *ReachableBB = BI->getSuccessor(!CondVal); in AddReachableCodeToWorklist()
|
/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/LLVM/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 422 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/ |
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/swiftshader/third_party/LLVM/lib/Analysis/ |
D | InstructionSimplify.cpp | 2210 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()
|
D | ScalarEvolution.cpp | 4878 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/ |
D | Execution.cpp | 667 GenericValue CondVal = getOperandValue(Cond, SF); in visitSwitchInst() local 675 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
|
/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/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 1472 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/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/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()
|