Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSelect.cpp205 Instruction *InstCombiner::FoldSelectIntoOp(SelectInst &SI, Value *TrueVal, in FoldSelectIntoOp() argument
209 if (Instruction *TVI = dyn_cast<Instruction>(TrueVal)) { in FoldSelectIntoOp()
246 !isa<Constant>(TrueVal)) { in FoldSelectIntoOp()
249 if ((SFO & 1) && TrueVal == FVI->getOperand(0)) { in FoldSelectIntoOp()
251 } else if ((SFO & 2) && TrueVal == FVI->getOperand(1)) { in FoldSelectIntoOp()
265 TrueVal, NewSel); in FoldSelectIntoOp()
349 Value *TrueVal = SI.getTrueValue(); in visitSelectInstWithICmp() local
384 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in visitSelectInstWithICmp()
385 (CmpLHS == FalseVal && AdjustedRHS == TrueVal)) in visitSelectInstWithICmp()
399 if (match(TrueVal, m_SExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp229 Instruction *InstCombiner::FoldSelectIntoOp(SelectInst &SI, Value *TrueVal, in FoldSelectIntoOp() argument
233 if (Instruction *TVI = dyn_cast<Instruction>(TrueVal)) { in FoldSelectIntoOp()
265 !isa<Constant>(TrueVal)) { in FoldSelectIntoOp()
268 if ((SFO & 1) && TrueVal == FVI->getOperand(0)) { in FoldSelectIntoOp()
270 } else if ((SFO & 2) && TrueVal == FVI->getOperand(1)) { in FoldSelectIntoOp()
284 TrueVal, NewSel); in FoldSelectIntoOp()
309 static Value *foldSelectICmpAndOr(const SelectInst &SI, Value *TrueVal, in foldSelectICmpAndOr() argument
329 bool OrOnFalseVal = match(FalseVal, m_Or(m_Specific(TrueVal), m_Power2(C2))); in foldSelectICmpAndOr()
331 OrOnTrueVal = match(TrueVal, m_Or(m_Specific(FalseVal), m_Power2(C2))); in foldSelectICmpAndOr()
337 Value *Y = OrOnFalseVal ? TrueVal : FalseVal; in foldSelectICmpAndOr()
[all …]
DInstCombineVectorOps.cpp266 Value *TrueVal = SI->getTrueValue(); in visitExtractElementInst() local
277 = Builder->CreateExtractElement(TrueVal, in visitExtractElementInst()
279 TrueVal->getName() + ".elt"); in visitExtractElementInst()
DInstCombineShifts.cpp168 Value *TrueVal = SI->getTrueValue(); in CanEvaluateShifted() local
170 return CanEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in CanEvaluateShifted()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMISelDAGToDAG.cpp247 SDNode *SelectT2CMOVShiftOp(SDNode *N, SDValue FalseVal, SDValue TrueVal,
250 SDNode *SelectARMCMOVShiftOp(SDNode *N, SDValue FalseVal, SDValue TrueVal,
253 SDNode *SelectT2CMOVImmOp(SDNode *N, SDValue FalseVal, SDValue TrueVal,
256 SDNode *SelectARMCMOVImmOp(SDNode *N, SDValue FalseVal, SDValue TrueVal,
2104 SelectT2CMOVShiftOp(SDNode *N, SDValue FalseVal, SDValue TrueVal, in SelectT2CMOVShiftOp() argument
2108 if (SelectT2ShifterOperandReg(TrueVal, CPTmp0, CPTmp1)) { in SelectT2CMOVShiftOp()
2131 SelectARMCMOVShiftOp(SDNode *N, SDValue FalseVal, SDValue TrueVal, in SelectARMCMOVShiftOp() argument
2136 if (SelectImmShifterOperand(TrueVal, CPTmp0, CPTmp2)) { in SelectARMCMOVShiftOp()
2142 if (SelectRegShifterOperand(TrueVal, CPTmp0, CPTmp1, CPTmp2)) { in SelectARMCMOVShiftOp()
2151 SelectT2CMOVImmOp(SDNode *N, SDValue FalseVal, SDValue TrueVal, in SelectT2CMOVImmOp() argument
[all …]
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp3376 static Value *SimplifySelectInst(Value *CondVal, Value *TrueVal, in SimplifySelectInst() argument
3383 return TrueVal; in SimplifySelectInst()
3389 if (TrueVal == FalseVal) in SimplifySelectInst()
3390 return TrueVal; in SimplifySelectInst()
3393 if (isa<Constant>(TrueVal)) in SimplifySelectInst()
3394 return TrueVal; in SimplifySelectInst()
3397 if (isa<UndefValue>(TrueVal)) // select C, undef, X -> X in SimplifySelectInst()
3400 return TrueVal; in SimplifySelectInst()
3403 unsigned BitWidth = Q.DL.getTypeSizeInBits(TrueVal->getType()); in SimplifySelectInst()
3432 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
[all …]
DLazyValueInfo.cpp887 LVILatticeVal TrueVal = getBlockValue(SI->getTrueValue(), BB); in solveBlockValueSelect() local
890 if (TrueVal.isOverdefined()) { in solveBlockValueSelect()
909 if (TrueVal.isConstantRange() && FalseVal.isConstantRange()) { in solveBlockValueSelect()
910 ConstantRange TrueCR = TrueVal.getConstantRange(); in solveBlockValueSelect()
952 TrueVal = intersect(TrueVal, TrueValTaken); in solveBlockValueSelect()
989 TrueVal = intersect(TrueVal, in solveBlockValueSelect()
998 Result.mergeIn(TrueVal, DL); in solveBlockValueSelect()
DValueTracking.cpp3709 Value *TrueVal, Value *FalseVal, in matchSelectPattern() argument
3771 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern()
3782 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in matchSelectPattern()
3805 if ((CmpLHS == TrueVal && match(FalseVal, m_Neg(m_Specific(CmpLHS)))) || in matchSelectPattern()
3806 (CmpLHS == FalseVal && match(TrueVal, m_Neg(m_Specific(CmpLHS))))) { in matchSelectPattern()
3811 return {(CmpLHS == TrueVal) ? SPF_ABS : SPF_NABS, SPNB_NA, false}; in matchSelectPattern()
3825 (match(TrueVal, m_Not(m_Specific(CmpLHS))) || in matchSelectPattern()
3826 match(CmpLHS, m_Not(m_Specific(TrueVal))))) { in matchSelectPattern()
3827 LHS = TrueVal; in matchSelectPattern()
3910 Value *TrueVal = SI->getTrueValue(); in matchSelectPattern() local
[all …]
DCFLGraph.h284 auto *TrueVal = Inst.getTrueValue(); in visitSelectInst() local
286 addAssignEdge(TrueVal, &Inst); in visitSelectInst()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h721 Value *TrueVal = SI->getTrueValue(); in match() local
725 if ((TrueVal != LHS || FalseVal != RHS) && in match()
726 (TrueVal != RHS || FalseVal != LHS)) in match()
728 ICmpInst::Predicate Pred = LHS == TrueVal ? in match()
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DInstructionSimplify.h120 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp2210 Value *llvm::SimplifySelectInst(Value *CondVal, Value *TrueVal, Value *FalseVal, in SimplifySelectInst() argument
2215 return CB->getZExtValue() ? TrueVal : FalseVal; in SimplifySelectInst()
2218 if (TrueVal == FalseVal) in SimplifySelectInst()
2219 return TrueVal; in SimplifySelectInst()
2222 if (isa<Constant>(TrueVal)) in SimplifySelectInst()
2223 return TrueVal; in SimplifySelectInst()
2226 if (isa<UndefValue>(TrueVal)) // select C, undef, X -> X in SimplifySelectInst()
2229 return TrueVal; in SimplifySelectInst()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DJumpThreading.cpp545 Constant *TrueVal = getKnownConstant(SI->getTrueValue(), Preference); in ComputeValueKnownInPredecessors() local
548 if ((TrueVal || FalseVal) && in ComputeValueKnownInPredecessors()
564 KnownCond = (TrueVal != 0); in ComputeValueKnownInPredecessors()
568 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in ComputeValueKnownInPredecessors()
/external/swiftshader/third_party/LLVM/lib/Bitcode/Reader/
DBitcodeReader.cpp2278 Value *TrueVal, *FalseVal, *Cond; in ParseFunctionBody() local
2279 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) || in ParseFunctionBody()
2280 getValue(Record, OpNum, TrueVal->getType(), FalseVal) || in ParseFunctionBody()
2284 I = SelectInst::Create(Cond, TrueVal, FalseVal); in ParseFunctionBody()
2293 Value *TrueVal, *FalseVal, *Cond; in ParseFunctionBody() local
2294 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) || in ParseFunctionBody()
2295 getValue(Record, OpNum, TrueVal->getType(), FalseVal) || in ParseFunctionBody()
2311 I = SelectInst::Create(Cond, TrueVal, FalseVal); in ParseFunctionBody()
/external/llvm/include/llvm/IR/
DInstruction.h223 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal);
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/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.h248 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal) const;
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp624 Constant *TrueVal = getKnownConstant(SI->getTrueValue(), Preference); in ComputeValueKnownInPredecessors() local
627 if ((TrueVal || FalseVal) && in ComputeValueKnownInPredecessors()
643 KnownCond = (TrueVal != nullptr); in ComputeValueKnownInPredecessors()
647 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in ComputeValueKnownInPredecessors()
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/
DMBlazeISelLowering.cpp572 SDValue TrueVal = Op.getOperand(2); in LowerSELECT_CC() local
586 return DAG.getNode(Opc, dl, TrueVal.getValueType(), TrueVal, FalseVal, in LowerSELECT_CC()
/external/llvm/include/llvm/Analysis/
DInstructionSimplify.h223 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
/external/llvm/lib/Target/ARM/
DARMISelLowering.cpp3698 SDValue TrueVal, SDValue ARMcc, SDValue CCR, in getCMOV() argument
3703 TrueVal = DAG.getNode(ARMISD::VMOVRRD, dl, in getCMOV()
3704 DAG.getVTList(MVT::i32, MVT::i32), TrueVal); in getCMOV()
3706 SDValue TrueLow = TrueVal.getValue(0); in getCMOV()
3707 SDValue TrueHigh = TrueVal.getValue(1); in getCMOV()
3718 return DAG.getNode(ARMISD::CMOV, dl, VT, FalseVal, TrueVal, ARMcc, CCR, in getCMOV()
3738 const SDValue TrueVal, const SDValue FalseVal, in isLowerSaturate() argument
3741 ((K == LHS && K == TrueVal) || (K == RHS && K == FalseVal))) || in isLowerSaturate()
3743 ((K == RHS && K == TrueVal) || (K == LHS && K == FalseVal))); in isLowerSaturate()
3748 const SDValue TrueVal, const SDValue FalseVal, in isUpperSaturate() argument
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DSimplifyCFG.cpp1356 Value *TrueVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfFalse); in FoldTwoEntryPHINode() local
1360 cast<SelectInst>(Builder.CreateSelect(IfCond, TrueVal, FalseVal, "")); in FoldTwoEntryPHINode()
1890 ConstantInt *TrueVal = dyn_cast<ConstantInt>(Select->getTrueValue()); in SimplifySwitchOnSelect() local
1892 if (!TrueVal || !FalseVal) in SimplifySwitchOnSelect()
1897 BasicBlock *TrueBB = SI->getSuccessor(SI->findCaseValue(TrueVal)); in SimplifySwitchOnSelect()
/external/swiftshader/third_party/LLVM/lib/Target/Sparc/
DSparcISelLowering.cpp976 SDValue TrueVal = Op.getOperand(2); in LowerSELECT_CC() local
999 return DAG.getNode(Opc, dl, TrueVal.getValueType(), TrueVal, FalseVal, in LowerSELECT_CC()
/external/llvm/lib/Target/Lanai/
DLanaiISelLowering.cpp1385 SDValue TrueVal = OtherOp; in combineSelectAndUse() local
1390 std::swap(TrueVal, FalseVal); in combineSelectAndUse()
1392 return DAG.getNode(ISD::SELECT, SDLoc(N), VT, CCOp, TrueVal, FalseVal); in combineSelectAndUse()
/external/llvm/lib/IR/
DConstantFold.cpp766 if (ConstantExpr *TrueVal = dyn_cast<ConstantExpr>(V1)) { in ConstantFoldSelectInstruction() local
767 if (TrueVal->getOpcode() == Instruction::Select) in ConstantFoldSelectInstruction()
768 if (TrueVal->getOperand(0) == Cond) in ConstantFoldSelectInstruction()
769 return ConstantExpr::getSelect(Cond, TrueVal->getOperand(1), V2); in ConstantFoldSelectInstruction()

12