/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 211 Value *FalseVal) { in FoldSelectIntoOp() argument 216 !isa<Constant>(FalseVal)) { in FoldSelectIntoOp() 219 if ((SFO & 1) && FalseVal == TVI->getOperand(0)) { in FoldSelectIntoOp() 221 } else if ((SFO & 2) && FalseVal == TVI->getOperand(1)) { in FoldSelectIntoOp() 235 FalseVal, NewSel); in FoldSelectIntoOp() 249 if (Instruction *FVI = dyn_cast<Instruction>(FalseVal)) { in FoldSelectIntoOp() 362 Value *FalseVal = SI.getFalseValue(); in visitSelectInstWithICmp() local 372 return ReplaceInstUsesWith(SI, FalseVal); in visitSelectInstWithICmp() 376 return ReplaceInstUsesWith(SI, FalseVal); in visitSelectInstWithICmp() 396 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in visitSelectInstWithICmp() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelDAGToDAG.cpp | 245 SDNode *SelectT2CMOVShiftOp(SDNode *N, SDValue FalseVal, SDValue TrueVal, 248 SDNode *SelectARMCMOVShiftOp(SDNode *N, SDValue FalseVal, SDValue TrueVal, 251 SDNode *SelectT2CMOVImmOp(SDNode *N, SDValue FalseVal, SDValue TrueVal, 254 SDNode *SelectARMCMOVImmOp(SDNode *N, SDValue FalseVal, SDValue TrueVal, 2286 SelectT2CMOVShiftOp(SDNode *N, SDValue FalseVal, SDValue TrueVal, in SelectT2CMOVShiftOp() argument 2305 SDValue Ops[] = { FalseVal, CPTmp0, SOShImm, CC, CCR, InFlag }; in SelectT2CMOVShiftOp() 2312 SelectARMCMOVShiftOp(SDNode *N, SDValue FalseVal, SDValue TrueVal, in SelectARMCMOVShiftOp() argument 2319 SDValue Ops[] = { FalseVal, CPTmp0, CPTmp2, CC, CCR, InFlag }; in SelectARMCMOVShiftOp() 2325 SDValue Ops[] = { FalseVal, CPTmp0, CPTmp1, CPTmp2, CC, CCR, InFlag }; in SelectARMCMOVShiftOp() 2332 SelectT2CMOVImmOp(SDNode *N, SDValue FalseVal, SDValue TrueVal, in SelectT2CMOVImmOp() argument [all …]
|
D | ARMISelLowering.cpp | 2992 SDValue FalseVal = Op.getOperand(3); in LowerSELECT_CC() local 2999 return DAG.getNode(ARMISD::CMOV, dl, VT, FalseVal, TrueVal, ARMcc, CCR,Cmp); in LowerSELECT_CC() 3008 SDValue Result = DAG.getNode(ARMISD::CMOV, dl, VT, FalseVal, TrueVal, in LowerSELECT_CC() 3511 SDValue FalseVal = DAG.getNode(ISD::OR, dl, VT, Tmp1, Tmp2); in LowerShiftRightParts() local 3518 SDValue Lo = DAG.getNode(ARMISD::CMOV, dl, VT, FalseVal, TrueVal, ARMcc, in LowerShiftRightParts() 3547 SDValue FalseVal = DAG.getNode(ISD::OR, dl, VT, Tmp1, Tmp2); in LowerShiftLeftParts() local 3552 SDValue Hi = DAG.getNode(ARMISD::CMOV, dl, VT, FalseVal, Tmp3, ARMcc, in LowerShiftLeftParts() 7562 SDValue FalseVal = DAG.getNode(N->getOpcode(), N->getDebugLoc(), VT, in combineSelectAndUse() local 7566 std::swap(TrueVal, FalseVal); in combineSelectAndUse() 7569 CCOp, TrueVal, FalseVal); in combineSelectAndUse() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | InstructionSimplify.h | 181 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
|
/external/llvm/include/llvm/Support/ |
D | PatternMatch.h | 853 Value *FalseVal = SI->getFalseValue(); in match() local 856 if ((TrueVal != LHS || FalseVal != RHS) && in match() 857 (TrueVal != RHS || FalseVal != LHS)) in match()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 2675 Value *FalseVal, const Query &Q, in SimplifySelectInst() argument 2680 return CB->getZExtValue() ? TrueVal : FalseVal; in SimplifySelectInst() 2683 if (TrueVal == FalseVal) in SimplifySelectInst() 2689 return FalseVal; in SimplifySelectInst() 2692 return FalseVal; in SimplifySelectInst() 2693 if (isa<UndefValue>(FalseVal)) // select C, X, undef -> X in SimplifySelectInst() 2699 Value *llvm::SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal, in SimplifySelectInst() argument 2703 return ::SimplifySelectInst(Cond, TrueVal, FalseVal, Query (TD, TLI, DT), in SimplifySelectInst()
|
/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 560 Constant *FalseVal = getKnownConstant(SI->getFalseValue(), Preference); in ComputeValueKnownInPredecessors() local 562 if ((TrueVal || FalseVal) && in ComputeValueKnownInPredecessors() 582 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in ComputeValueKnownInPredecessors()
|
D | GVN.cpp | 2201 Value *FalseVal = ConstantInt::getFalse(FalseSucc->getContext()); in processInstruction() local 2203 Changed |= propagateEquality(BranchCond, FalseVal, FalseE); in processInstruction()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 2220 Value *TrueVal, *FalseVal, *Cond; in ParseFunctionBody() local 2222 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in ParseFunctionBody() 2226 I = SelectInst::Create(Cond, TrueVal, FalseVal); in ParseFunctionBody() 2235 Value *TrueVal, *FalseVal, *Cond; in ParseFunctionBody() local 2237 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in ParseFunctionBody() 2253 I = SelectInst::Create(Cond, TrueVal, FalseVal); in ParseFunctionBody()
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 731 if (ConstantExpr *FalseVal = dyn_cast<ConstantExpr>(V2)) { in ConstantFoldSelectInstruction() local 732 if (FalseVal->getOpcode() == Instruction::Select) in ConstantFoldSelectInstruction() 733 if (FalseVal->getOperand(0) == Cond) in ConstantFoldSelectInstruction() 734 return ConstantExpr::getSelect(Cond, V1, FalseVal->getOperand(2)); in ConstantFoldSelectInstruction()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 1756 Value *FalseVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfTrue); in FoldTwoEntryPHINode() local 1759 cast<SelectInst>(Builder.CreateSelect(IfCond, TrueVal, FalseVal, "")); in FoldTwoEntryPHINode() 2490 ConstantInt *FalseVal = dyn_cast<ConstantInt>(Select->getFalseValue()); in SimplifySwitchOnSelect() local 2491 if (!TrueVal || !FalseVal) in SimplifySwitchOnSelect() 2497 BasicBlock *FalseBB = SI->findCaseValue(FalseVal).getCaseSuccessor(); in SimplifySwitchOnSelect() 2508 FalseWeight = (uint32_t)Weights[SI->findCaseValue(FalseVal). in SimplifySwitchOnSelect()
|
/external/llvm/lib/Target/MBlaze/ |
D | MBlazeISelLowering.cpp | 577 SDValue FalseVal = Op.getOperand(3); in LowerSELECT_CC() local 590 return DAG.getNode(Opc, dl, TrueVal.getValueType(), TrueVal, FalseVal, in LowerSELECT_CC()
|
/external/llvm/lib/Target/Sparc/ |
D | SparcISelLowering.cpp | 977 SDValue FalseVal = Op.getOperand(3); in LowerSELECT_CC() local 998 return DAG.getNode(Opc, dl, TrueVal.getValueType(), TrueVal, FalseVal, in LowerSELECT_CC()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonISelLowering.cpp | 939 SDValue FalseVal = Op.getOperand(3); in LowerSELECT_CC() local 945 return DAG.getNode(ISD::SELECT, dl, SVT, Cond, TrueVal, FalseVal); in LowerSELECT_CC()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 2739 SDValue FalseVal = getValue(I.getOperand(2)); in visitSelect() local 2749 SDValue(FalseVal.getNode(), in visitSelect() 2750 FalseVal.getResNo() + i)); in visitSelect()
|