/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 37 Value *TrueVal = SI->getTrueValue(); in MatchSelectPattern() local 44 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in MatchSelectPattern() 59 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in MatchSelectPattern() 74 if ((CmpLHS == TrueVal && match(FalseVal, m_Neg(m_Specific(CmpLHS)))) || in MatchSelectPattern() 75 (CmpLHS == FalseVal && match(TrueVal, m_Neg(m_Specific(CmpLHS))))) { in MatchSelectPattern() 80 return (CmpLHS == TrueVal) ? SPF_ABS : SPF_NABS; in MatchSelectPattern() 235 Instruction *InstCombiner::FoldSelectIntoOp(SelectInst &SI, Value *TrueVal, in FoldSelectIntoOp() argument 239 if (Instruction *TVI = dyn_cast<Instruction>(TrueVal)) { in FoldSelectIntoOp() 276 !isa<Constant>(TrueVal)) { in FoldSelectIntoOp() 279 if ((SFO & 1) && TrueVal == FVI->getOperand(0)) { in FoldSelectIntoOp() [all …]
|
D | InstCombineVectorOps.cpp | 298 Value *TrueVal = SI->getTrueValue(); in visitExtractElementInst() local 309 = Builder->CreateExtractElement(TrueVal, in visitExtractElementInst() 311 TrueVal->getName() + ".elt"); in visitExtractElementInst()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 3151 static Value *SimplifySelectInst(Value *CondVal, Value *TrueVal, in SimplifySelectInst() argument 3158 return TrueVal; in SimplifySelectInst() 3164 if (TrueVal == FalseVal) in SimplifySelectInst() 3165 return TrueVal; in SimplifySelectInst() 3168 if (isa<Constant>(TrueVal)) in SimplifySelectInst() 3169 return TrueVal; in SimplifySelectInst() 3172 if (isa<UndefValue>(TrueVal)) // select C, undef, X -> X in SimplifySelectInst() 3175 return TrueVal; in SimplifySelectInst() 3178 unsigned BitWidth = TrueVal->getType()->getScalarSizeInBits(); in SimplifySelectInst() 3208 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst() [all …]
|
D | CFLAliasAnalysis.cpp | 327 auto *TrueVal = Inst.getTrueValue(); in visitSelectInst() local 328 Output.push_back(Edge(&Inst, TrueVal, EdgeType::Assign, AttrNone)); in visitSelectInst()
|
/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 581 Constant *TrueVal = getKnownConstant(SI->getTrueValue(), Preference); in ComputeValueKnownInPredecessors() local 584 if ((TrueVal || FalseVal) && in ComputeValueKnownInPredecessors() 600 KnownCond = (TrueVal != nullptr); in ComputeValueKnownInPredecessors() 604 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in ComputeValueKnownInPredecessors()
|
D | GVN.cpp | 2269 Value *TrueVal = ConstantInt::getTrue(TrueSucc->getContext()); in processInstruction() local 2271 Changed |= propagateEquality(BranchCond, TrueVal, TrueE); in processInstruction()
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 967 Value *TrueVal = SI->getTrueValue(); in match() local 971 if ((TrueVal != LHS || FalseVal != RHS) && in match() 972 (TrueVal != RHS || FalseVal != LHS)) in match() 975 LHS == TrueVal ? Cmp->getPredicate() : Cmp->getSwappedPredicate(); in match()
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 3431 SDValue TrueVal, SDValue ARMcc, SDValue CCR, in getCMOV() argument 3436 TrueVal = DAG.getNode(ARMISD::VMOVRRD, dl, in getCMOV() 3437 DAG.getVTList(MVT::i32, MVT::i32), TrueVal); in getCMOV() 3439 SDValue TrueLow = TrueVal.getValue(0); in getCMOV() 3440 SDValue TrueHigh = TrueVal.getValue(1); in getCMOV() 3451 return DAG.getNode(ARMISD::CMOV, dl, VT, FalseVal, TrueVal, ARMcc, CCR, in getCMOV() 3461 SDValue TrueVal = Op.getOperand(2); in LowerSELECT_CC() local 3488 if (Subtarget->hasFPARMv8() && (TrueVal.getValueType() == MVT::f32 || in LowerSELECT_CC() 3489 TrueVal.getValueType() == MVT::f64)) { in LowerSELECT_CC() 3494 std::swap(TrueVal, FalseVal); in LowerSELECT_CC() [all …]
|
D | ARMISelLowering.h | 580 SDValue getCMOV(SDLoc dl, EVT VT, SDValue FalseVal, SDValue TrueVal,
|
/external/llvm/include/llvm/Analysis/ |
D | InstructionSimplify.h | 223 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 3591 Value *TrueVal, *FalseVal, *Cond; in ParseFunctionBody() local 3592 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) || in ParseFunctionBody() 3593 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in ParseFunctionBody() 3597 I = SelectInst::Create(Cond, TrueVal, FalseVal); in ParseFunctionBody() 3606 Value *TrueVal, *FalseVal, *Cond; in ParseFunctionBody() local 3607 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) || in ParseFunctionBody() 3608 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in ParseFunctionBody() 3624 I = SelectInst::Create(Cond, TrueVal, FalseVal); in ParseFunctionBody()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeFloatTypes.cpp | 1967 SDValue TrueVal = GetPromotedFloat(N->getOperand(1)); in PromoteFloatRes_SELECT() local 1970 return DAG.getNode(ISD::SELECT, SDLoc(N), TrueVal->getValueType(0), in PromoteFloatRes_SELECT() 1971 N->getOperand(0), TrueVal, FalseVal); in PromoteFloatRes_SELECT() 1977 SDValue TrueVal = GetPromotedFloat(N->getOperand(2)); in PromoteFloatRes_SELECT_CC() local 1981 N->getOperand(0), N->getOperand(1), TrueVal, FalseVal, in PromoteFloatRes_SELECT_CC()
|
D | SelectionDAGBuilder.cpp | 2953 SDValue TrueVal = getValue(I.getOperand(1)); in visitSelect() local 2960 TrueVal.getNode()->getValueType(TrueVal.getResNo()+i), in visitSelect() 2962 SDValue(TrueVal.getNode(), in visitSelect() 2963 TrueVal.getResNo() + i), in visitSelect()
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 767 if (ConstantExpr *TrueVal = dyn_cast<ConstantExpr>(V1)) { in ConstantFoldSelectInstruction() local 768 if (TrueVal->getOpcode() == Instruction::Select) in ConstantFoldSelectInstruction() 769 if (TrueVal->getOperand(0) == Cond) in ConstantFoldSelectInstruction() 770 return ConstantExpr::getSelect(Cond, TrueVal->getOperand(1), V2); in ConstantFoldSelectInstruction()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 1903 Value *TrueVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfFalse); in FoldTwoEntryPHINode() local 1907 cast<SelectInst>(Builder.CreateSelect(IfCond, TrueVal, FalseVal, "")); in FoldTwoEntryPHINode() 2633 ConstantInt *TrueVal = dyn_cast<ConstantInt>(Select->getTrueValue()); in SimplifySwitchOnSelect() local 2635 if (!TrueVal || !FalseVal) in SimplifySwitchOnSelect() 2640 BasicBlock *TrueBB = SI->findCaseValue(TrueVal).getCaseSuccessor(); in SimplifySwitchOnSelect() 2650 TrueWeight = (uint32_t)Weights[SI->findCaseValue(TrueVal). in SimplifySwitchOnSelect()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXISelLowering.cpp | 1700 SDValue TrueVal = DAG.getNode(Opc, dl, VT, ShOpHi, ExtraShAmt); in LowerShiftRightParts() local 1705 SDValue Lo = DAG.getNode(ISD::SELECT, dl, VT, Cmp, TrueVal, FalseVal); in LowerShiftRightParts() 1760 SDValue TrueVal = DAG.getNode(ISD::SHL, dl, VT, ShOpLo, ExtraShAmt); in LowerShiftLeftParts() local 1765 SDValue Hi = DAG.getNode(ISD::SELECT, dl, VT, Cmp, TrueVal, FalseVal); in LowerShiftLeftParts()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 1889 int64_t TrueVal = TrueC->getSExtValue(); in lowerSELECT_CC() local 1891 if ((TrueVal == -1 && FalseVal == 0) || (TrueVal == 0 && FalseVal == -1)) { in lowerSELECT_CC() 1893 if (TrueVal == 0) in lowerSELECT_CC()
|
/external/llvm/lib/Target/Sparc/ |
D | SparcISelLowering.cpp | 2329 SDValue TrueVal = Op.getOperand(2); in LowerSELECT_CC() local 2355 return DAG.getNode(Opc, dl, TrueVal.getValueType(), TrueVal, FalseVal, in LowerSELECT_CC()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 3629 const int64_t TrueVal = CTVal->getSExtValue(); in LowerSELECT_CC() local 3636 if (TrueVal == ~FalseVal) { in LowerSELECT_CC() 3638 } else if (TrueVal == -FalseVal) { in LowerSELECT_CC() 3657 } else if ((TrueVal == FalseVal + 1) || (TrueVal + 1 == FalseVal)) { in LowerSELECT_CC() 3660 if (TrueVal > FalseVal) { in LowerSELECT_CC()
|