/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 206 Value *FalseVal) { in FoldSelectIntoOp() argument 211 !isa<Constant>(FalseVal)) { in FoldSelectIntoOp() 214 if ((SFO & 1) && FalseVal == TVI->getOperand(0)) { in FoldSelectIntoOp() 216 } else if ((SFO & 2) && FalseVal == TVI->getOperand(1)) { in FoldSelectIntoOp() 230 FalseVal, NewSel); in FoldSelectIntoOp() 244 if (Instruction *FVI = dyn_cast<Instruction>(FalseVal)) { in FoldSelectIntoOp() 350 Value *FalseVal = SI.getFalseValue(); in visitSelectInstWithICmp() local 360 return ReplaceInstUsesWith(SI, FalseVal); in visitSelectInstWithICmp() 364 return ReplaceInstUsesWith(SI, FalseVal); in visitSelectInstWithICmp() 384 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in visitSelectInstWithICmp() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 230 Value *FalseVal) { in FoldSelectIntoOp() argument 235 !isa<Constant>(FalseVal)) { in FoldSelectIntoOp() 238 if ((SFO & 1) && FalseVal == TVI->getOperand(0)) { in FoldSelectIntoOp() 240 } else if ((SFO & 2) && FalseVal == TVI->getOperand(1)) { in FoldSelectIntoOp() 254 FalseVal, NewSel); in FoldSelectIntoOp() 263 if (Instruction *FVI = dyn_cast<Instruction>(FalseVal)) { in FoldSelectIntoOp() 310 Value *FalseVal, 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 …]
|
D | InstCombineVectorOps.cpp | 267 Value *FalseVal = SI->getFalseValue(); in visitExtractElementInst() local 282 = Builder->CreateExtractElement(FalseVal, in visitExtractElementInst() 284 FalseVal->getName() + ".elt"); in visitExtractElementInst()
|
D | InstCombineShifts.cpp | 169 Value *FalseVal = SI->getFalseValue(); in CanEvaluateShifted() local 171 CanEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in CanEvaluateShifted()
|
/external/llvm/lib/DebugInfo/CodeView/ |
D | RecordSerialization.cpp | 36 bool FalseVal = false; in consume() local 88 /*isSigned=*/FalseVal), in consume()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 3377 Value *FalseVal, const Query &Q, in SimplifySelectInst() argument 3385 return FalseVal; in SimplifySelectInst() 3389 if (TrueVal == FalseVal) in SimplifySelectInst() 3395 return FalseVal; in SimplifySelectInst() 3398 return FalseVal; in SimplifySelectInst() 3399 if (isa<UndefValue>(FalseVal)) // select C, X, undef -> X in SimplifySelectInst() 3432 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst() 3434 return TrueWhenUnset ? FalseVal : TrueVal; in SimplifySelectInst() 3437 if (TrueVal == X && match(FalseVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst() 3439 return TrueWhenUnset ? FalseVal : TrueVal; in SimplifySelectInst() [all …]
|
D | LazyValueInfo.cpp | 901 LVILatticeVal FalseVal = getBlockValue(SI->getFalseValue(), BB); in solveBlockValueSelect() local 904 if (FalseVal.isOverdefined()) { in solveBlockValueSelect() 909 if (TrueVal.isConstantRange() && FalseVal.isConstantRange()) { in solveBlockValueSelect() 911 ConstantRange FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect() 953 FalseVal = intersect(FalseVal, FalseValTaken); in solveBlockValueSelect() 981 FalseVal = intersect(FalseVal, in solveBlockValueSelect() 999 Result.mergeIn(FalseVal, DL); in solveBlockValueSelect()
|
D | CFLGraph.h | 285 auto *FalseVal = Inst.getFalseValue(); in visitSelectInst() local 287 addAssignEdge(FalseVal, &Inst); in visitSelectInst()
|
D | ValueTracking.cpp | 3709 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() 3817 return {(CmpLHS == FalseVal) ? SPF_ABS : SPF_NABS, SPNB_NA, false}; in matchSelectPattern() 3822 if (const auto *C2 = dyn_cast<ConstantInt>(FalseVal)) { in matchSelectPattern() 3828 RHS = FalseVal; in matchSelectPattern() 3911 Value *FalseVal = SI->getFalseValue(); in matchSelectPattern() local 3922 if (Value *C = lookThroughCast(CmpI, TrueVal, FalseVal, CastOp)) in matchSelectPattern() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
D | ARMISelDAGToDAG.cpp | 247 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 2124 SDValue Ops[] = { FalseVal, CPTmp0, SOShImm, CC, CCR, InFlag }; in SelectT2CMOVShiftOp() 2131 SelectARMCMOVShiftOp(SDNode *N, SDValue FalseVal, SDValue TrueVal, in SelectARMCMOVShiftOp() argument 2138 SDValue Ops[] = { FalseVal, CPTmp0, CPTmp2, CC, CCR, InFlag }; in SelectARMCMOVShiftOp() 2144 SDValue Ops[] = { FalseVal, CPTmp0, CPTmp1, CPTmp2, CC, CCR, InFlag }; in SelectARMCMOVShiftOp() 2151 SelectT2CMOVImmOp(SDNode *N, SDValue FalseVal, SDValue TrueVal, in SelectT2CMOVImmOp() argument [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | InstructionSimplify.h | 120 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | PatternMatch.h | 722 Value *FalseVal = SI->getFalseValue(); in match() local 725 if ((TrueVal != LHS || FalseVal != RHS) && in match() 726 (TrueVal != RHS || FalseVal != LHS)) in match()
|
/external/llvm/include/llvm/IR/ |
D | Instruction.h | 223 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal);
|
D | PatternMatch.h | 968 Value *FalseVal = SI->getFalseValue(); in match() local 971 if ((TrueVal != LHS || FalseVal != RHS) && in match() 972 (TrueVal != RHS || FalseVal != LHS)) in match()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Instruction.h | 248 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal) const;
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | InstructionSimplify.cpp | 2210 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() 2224 return FalseVal; in SimplifySelectInst() 2227 return FalseVal; in SimplifySelectInst() 2228 if (isa<UndefValue>(FalseVal)) // select C, X, undef -> X in SimplifySelectInst()
|
/external/llvm/include/llvm/Analysis/ |
D | InstructionSimplify.h | 223 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 546 Constant *FalseVal = getKnownConstant(SI->getFalseValue(), Preference); in ComputeValueKnownInPredecessors() local 548 if ((TrueVal || FalseVal) && in ComputeValueKnownInPredecessors() 568 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in ComputeValueKnownInPredecessors()
|
/external/swiftshader/third_party/LLVM/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 2278 Value *TrueVal, *FalseVal, *Cond; in ParseFunctionBody() local 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 2295 getValue(Record, OpNum, TrueVal->getType(), FalseVal) || in ParseFunctionBody() 2311 I = SelectInst::Create(Cond, TrueVal, FalseVal); in ParseFunctionBody()
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 3697 SDValue ARMTargetLowering::getCMOV(const SDLoc &dl, EVT VT, SDValue FalseVal, in getCMOV() argument 3701 FalseVal = DAG.getNode(ARMISD::VMOVRRD, dl, in getCMOV() 3702 DAG.getVTList(MVT::i32, MVT::i32), FalseVal); in getCMOV() 3708 SDValue FalseLow = FalseVal.getValue(0); in getCMOV() 3709 SDValue FalseHigh = FalseVal.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/ |
D | SimplifyCFG.cpp | 1357 Value *FalseVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfTrue); in FoldTwoEntryPHINode() local 1360 cast<SelectInst>(Builder.CreateSelect(IfCond, TrueVal, FalseVal, "")); in FoldTwoEntryPHINode() 1891 ConstantInt *FalseVal = dyn_cast<ConstantInt>(Select->getFalseValue()); in SimplifySwitchOnSelect() local 1892 if (!TrueVal || !FalseVal) in SimplifySwitchOnSelect() 1898 BasicBlock *FalseBB = SI->getSuccessor(SI->findCaseValue(FalseVal)); in SimplifySwitchOnSelect()
|
/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 625 Constant *FalseVal = getKnownConstant(SI->getFalseValue(), Preference); in ComputeValueKnownInPredecessors() local 627 if ((TrueVal || FalseVal) && in ComputeValueKnownInPredecessors() 647 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in ComputeValueKnownInPredecessors()
|
/external/llvm/lib/Target/Lanai/ |
D | LanaiISelLowering.cpp | 1386 SDValue FalseVal = 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/ |
D | ConstantFold.cpp | 771 if (ConstantExpr *FalseVal = dyn_cast<ConstantExpr>(V2)) { in ConstantFoldSelectInstruction() local 772 if (FalseVal->getOpcode() == Instruction::Select) in ConstantFoldSelectInstruction() 773 if (FalseVal->getOperand(0) == Cond) in ConstantFoldSelectInstruction() 774 return ConstantExpr::getSelect(Cond, V1, FalseVal->getOperand(2)); in ConstantFoldSelectInstruction()
|
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/ |
D | MBlazeISelLowering.cpp | 573 SDValue FalseVal = Op.getOperand(3); in LowerSELECT_CC() local 586 return DAG.getNode(Opc, dl, TrueVal.getValueType(), TrueVal, FalseVal, in LowerSELECT_CC()
|