Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp658 Value *CondVal = SI.getCondition(); in visitSelectInst() local
662 if (Value *V = SimplifySelectInst(CondVal, TrueVal, FalseVal, TD)) in visitSelectInst()
669 return BinaryOperator::CreateOr(CondVal, FalseVal); in visitSelectInst()
672 Value *NotCond = Builder->CreateNot(CondVal, "not."+CondVal->getName()); in visitSelectInst()
677 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
680 Value *NotCond = Builder->CreateNot(CondVal, "not."+CondVal->getName()); in visitSelectInst()
686 if (CondVal == TrueVal) in visitSelectInst()
687 return BinaryOperator::CreateOr(CondVal, FalseVal); in visitSelectInst()
688 else if (CondVal == FalseVal) in visitSelectInst()
689 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
[all …]
DInstructionCombining.cpp1922 bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue(); in AddReachableCodeToWorklist() local
1923 BasicBlock *ReachableBB = BI->getSuccessor(!CondVal); in AddReachableCodeToWorklist()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp649 GenericValue CondVal = getOperandValue(Cond, SF); in visitSwitchInst() local
659 if (executeICMP_EQ(Val, CondVal, ElTy).IntVal != 0) { in visitSwitchInst()
669 if (executeICMP_EQ(Val, CondVal, ElTy).IntVal != 0) { in visitSwitchInst()
682 if (executeICMP_ULE(Low, CondVal, ElTy).IntVal != 0 && in visitSwitchInst()
683 executeICMP_ULE(CondVal, High, ElTy).IntVal != 0) { in visitSwitchInst()
/external/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp628 Constant *CondVal = 0; in UnswitchIfProfitable() local
631 if (IsTrivialUnswitchCondition(LoopCond, &CondVal, &ExitBlock)) { in UnswitchIfProfitable()
634 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, ExitBlock); in UnswitchIfProfitable()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp462 const Stmt *Else, bool CondVal, in CreateIfFixit() argument
464 if (CondVal) { in CreateIfFixit()
DSemaStmt.cpp388 Sema::ActOnIfStmt(SourceLocation IfLoc, FullExprArg CondVal, Decl *CondVar, in ActOnIfStmt() argument
391 ExprResult CondResult(CondVal.release()); in ActOnIfStmt()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp2508 static Value *SimplifySelectInst(Value *CondVal, Value *TrueVal, in SimplifySelectInst() argument
2513 if (ConstantInt *CB = dyn_cast<ConstantInt>(CondVal)) in SimplifySelectInst()
2520 if (isa<UndefValue>(CondVal)) { // select undef, X, Y -> X or Y in SimplifySelectInst()
DScalarEvolution.cpp4930 ConstantInt *CondVal = in ComputeExitCountExhaustively() local
4935 if (!CondVal) return getCouldNotCompute(); in ComputeExitCountExhaustively()
4937 if (CondVal->getValue() == uint64_t(ExitWhen)) { in ComputeExitCountExhaustively()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp1500 const Value *CondVal = I.getCondition(); in visitBr() local
1519 if (const BinaryOperator *BOp = dyn_cast<BinaryOperator>(CondVal)) { in visitBr()
1554 CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()), in visitBr()
/external/clang/include/clang/Sema/
DSema.h2514 FullExprArg CondVal, Decl *CondVar,