Home
last modified time | relevance | path

Searched refs:TrueVal (Results 1 – 21 of 21) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp208 Instruction *InstCombiner::FoldSelectIntoOp(SelectInst &SI, Value *TrueVal, in FoldSelectIntoOp() argument
212 if (Instruction *TVI = dyn_cast<Instruction>(TrueVal)) { in FoldSelectIntoOp()
249 !isa<Constant>(TrueVal)) { in FoldSelectIntoOp()
252 if ((SFO & 1) && TrueVal == FVI->getOperand(0)) { in FoldSelectIntoOp()
254 } else if ((SFO & 2) && TrueVal == FVI->getOperand(1)) { in FoldSelectIntoOp()
268 TrueVal, NewSel); in FoldSelectIntoOp()
298 static Value *foldSelectICmpAndOr(const SelectInst &SI, Value *TrueVal, in foldSelectICmpAndOr() argument
318 bool OrOnFalseVal = match(FalseVal, m_Or(m_Specific(TrueVal), m_Power2(C2))); in foldSelectICmpAndOr()
320 OrOnTrueVal = match(TrueVal, m_Or(m_Specific(FalseVal), m_Power2(C2))); in foldSelectICmpAndOr()
326 Value *Y = OrOnFalseVal ? TrueVal : FalseVal; in foldSelectICmpAndOr()
[all …]
DInstCombineVectorOps.cpp250 Value *TrueVal = SI->getTrueValue(); in visitExtractElementInst() local
261 = Builder->CreateExtractElement(TrueVal, in visitExtractElementInst()
263 TrueVal->getName() + ".elt"); in visitExtractElementInst()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp3316 static Value *SimplifySelectInst(Value *CondVal, Value *TrueVal, in SimplifySelectInst() argument
3323 return TrueVal; in SimplifySelectInst()
3329 if (TrueVal == FalseVal) in SimplifySelectInst()
3330 return TrueVal; in SimplifySelectInst()
3333 if (isa<Constant>(TrueVal)) in SimplifySelectInst()
3334 return TrueVal; in SimplifySelectInst()
3337 if (isa<UndefValue>(TrueVal)) // select C, undef, X -> X in SimplifySelectInst()
3340 return TrueVal; in SimplifySelectInst()
3343 unsigned BitWidth = Q.DL.getTypeSizeInBits(TrueVal->getType()); in SimplifySelectInst()
3372 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
[all …]
DValueTracking.cpp3860 Value *TrueVal, Value *FalseVal, in matchSelectPattern() argument
3922 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern()
3933 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in matchSelectPattern()
3956 if ((CmpLHS == TrueVal && match(FalseVal, m_Neg(m_Specific(CmpLHS)))) || in matchSelectPattern()
3957 (CmpLHS == FalseVal && match(TrueVal, m_Neg(m_Specific(CmpLHS))))) { in matchSelectPattern()
3962 return {(CmpLHS == TrueVal) ? SPF_ABS : SPF_NABS, SPNB_NA, false}; in matchSelectPattern()
3975 (match(TrueVal, m_Not(m_Specific(CmpLHS))) || in matchSelectPattern()
3976 match(CmpLHS, m_Not(m_Specific(TrueVal))))) { in matchSelectPattern()
3977 LHS = TrueVal; in matchSelectPattern()
4056 Value *TrueVal = SI->getTrueValue(); in matchSelectPattern() local
[all …]
DCFLAliasAnalysis.cpp221 auto *TrueVal = Inst.getTrueValue(); in visitSelectInst() local
222 Output.push_back(Edge(&Inst, TrueVal, EdgeType::Assign, AttrNone)); in visitSelectInst()
DScalarEvolution.cpp3989 Value *TrueVal, in createNodeForSelectOrPHI() argument
3994 return getSCEV(CI->isOne() ? TrueVal : FalseVal); in createNodeForSelectOrPHI()
4016 const SCEV *LA = getSCEV(TrueVal); in createNodeForSelectOrPHI()
4039 const SCEV *LA = getSCEV(TrueVal); in createNodeForSelectOrPHI()
4057 const SCEV *LA = getSCEV(TrueVal); in createNodeForSelectOrPHI()
4071 const SCEV *LA = getSCEV(TrueVal); in createNodeForSelectOrPHI()
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp628 Constant *TrueVal = getKnownConstant(SI->getTrueValue(), Preference); in ComputeValueKnownInPredecessors() local
631 if ((TrueVal || FalseVal) && in ComputeValueKnownInPredecessors()
647 KnownCond = (TrueVal != nullptr); in ComputeValueKnownInPredecessors()
651 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in ComputeValueKnownInPredecessors()
DGVN.cpp2346 Value *TrueVal = ConstantInt::getTrue(TrueSucc->getContext()); in processInstruction() local
2348 Changed |= propagateEquality(BranchCond, TrueVal, TrueE, true); in processInstruction()
/external/llvm/include/llvm/IR/
DPatternMatch.h967 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/include/llvm/Analysis/
DInstructionSimplify.h223 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
DScalarEvolution.h575 Value *TrueVal, Value *FalseVal);
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeFloatTypes.cpp2086 SDValue TrueVal = GetPromotedFloat(N->getOperand(1)); in PromoteFloatRes_SELECT() local
2089 return DAG.getNode(ISD::SELECT, SDLoc(N), TrueVal->getValueType(0), in PromoteFloatRes_SELECT()
2090 N->getOperand(0), TrueVal, FalseVal); in PromoteFloatRes_SELECT()
2096 SDValue TrueVal = GetPromotedFloat(N->getOperand(2)); in PromoteFloatRes_SELECT_CC() local
2100 N->getOperand(0), N->getOperand(1), TrueVal, FalseVal, in PromoteFloatRes_SELECT_CC()
/external/llvm/lib/Target/ARM/
DARMISelLowering.cpp3569 SDValue TrueVal, SDValue ARMcc, SDValue CCR, in getCMOV() argument
3574 TrueVal = DAG.getNode(ARMISD::VMOVRRD, dl, in getCMOV()
3575 DAG.getVTList(MVT::i32, MVT::i32), TrueVal); in getCMOV()
3577 SDValue TrueLow = TrueVal.getValue(0); in getCMOV()
3578 SDValue TrueHigh = TrueVal.getValue(1); in getCMOV()
3589 return DAG.getNode(ARMISD::CMOV, dl, VT, FalseVal, TrueVal, ARMcc, CCR, in getCMOV()
3599 SDValue TrueVal = Op.getOperand(2); in LowerSELECT_CC() local
3626 if (Subtarget->hasFPARMv8() && (TrueVal.getValueType() == MVT::f32 || in LowerSELECT_CC()
3627 TrueVal.getValueType() == MVT::f64)) { in LowerSELECT_CC()
3632 std::swap(TrueVal, FalseVal); in LowerSELECT_CC()
[all …]
DARMISelLowering.h637 SDValue getCMOV(SDLoc dl, EVT VT, SDValue FalseVal, SDValue TrueVal,
/external/llvm/lib/IR/
DConstantFold.cpp767 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/Bitcode/Reader/
DBitcodeReader.cpp4275 Value *TrueVal, *FalseVal, *Cond; in parseFunctionBody() local
4276 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) || in parseFunctionBody()
4277 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in parseFunctionBody()
4281 I = SelectInst::Create(Cond, TrueVal, FalseVal); in parseFunctionBody()
4290 Value *TrueVal, *FalseVal, *Cond; in parseFunctionBody() local
4291 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) || in parseFunctionBody()
4292 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in parseFunctionBody()
4308 I = SelectInst::Create(Cond, TrueVal, FalseVal); in parseFunctionBody()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp1928 Value *TrueVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfFalse); in FoldTwoEntryPHINode() local
1932 cast<SelectInst>(Builder.CreateSelect(IfCond, TrueVal, FalseVal, "")); in FoldTwoEntryPHINode()
2959 ConstantInt *TrueVal = dyn_cast<ConstantInt>(Select->getTrueValue()); in SimplifySwitchOnSelect() local
2961 if (!TrueVal || !FalseVal) in SimplifySwitchOnSelect()
2966 BasicBlock *TrueBB = SI->findCaseValue(TrueVal).getCaseSuccessor(); in SimplifySwitchOnSelect()
2976 TrueWeight = (uint32_t)Weights[SI->findCaseValue(TrueVal). in SimplifySwitchOnSelect()
/external/llvm/lib/Target/NVPTX/
DNVPTXISelLowering.cpp1734 SDValue TrueVal = DAG.getNode(Opc, dl, VT, ShOpHi, ExtraShAmt); in LowerShiftRightParts() local
1740 SDValue Lo = DAG.getNode(ISD::SELECT, dl, VT, Cmp, TrueVal, FalseVal); in LowerShiftRightParts()
1796 SDValue TrueVal = DAG.getNode(ISD::SHL, dl, VT, ShOpLo, ExtraShAmt); in LowerShiftLeftParts() local
1802 SDValue Hi = DAG.getNode(ISD::SELECT, dl, VT, Cmp, TrueVal, FalseVal); in LowerShiftLeftParts()
/external/llvm/lib/Target/Sparc/
DSparcISelLowering.cpp2433 SDValue TrueVal = Op.getOperand(2); in LowerSELECT_CC() local
2459 return DAG.getNode(Opc, dl, TrueVal.getValueType(), TrueVal, FalseVal, in LowerSELECT_CC()
/external/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp2386 int64_t TrueVal = TrueC->getSExtValue(); in lowerSELECT_CC() local
2388 if ((TrueVal == -1 && FalseVal == 0) || (TrueVal == 0 && FalseVal == -1)) { in lowerSELECT_CC()
2390 if (TrueVal == 0) in lowerSELECT_CC()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp3949 const int64_t TrueVal = CTVal->getSExtValue(); in LowerSELECT_CC() local
3956 if (TrueVal == ~FalseVal) { in LowerSELECT_CC()
3958 } else if (TrueVal == -FalseVal) { in LowerSELECT_CC()
3977 } else if ((TrueVal == FalseVal + 1) || (TrueVal + 1 == FalseVal)) { in LowerSELECT_CC()
3980 if (TrueVal > FalseVal) { in LowerSELECT_CC()