Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp597 std::swap(TrueVal, FalseVal); in foldSelectICmpLshrAshr()
996 Value *ValueOnZero = TrueVal; in foldSelectCttzCtlz()
1088 CmpLHS = TrueVal; in adjustMinMax()
1101 CmpLHS = TrueVal; in adjustMinMax()
1119 std::swap(FalseVal, TrueVal); in adjustMinMax()
1123 Sel.setOperand(1, TrueVal); in adjustMinMax()
1242 if (TrueVal != CmpLHS && in foldSelectValueEquivalence()
1260 if (TrueVal != CmpRHS && in foldSelectValueEquivalence()
2609 std::swap(TrueVal, X); in foldSelectWithFCmpToFabs()
2755 Value *TrueVal = nullptr; member
[all …]
H A DInstCombineShifts.cpp554 Value *TrueVal = SI->getTrueValue(); in canEvaluateShifted() local
556 return canEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in canEvaluateShifted()
823 Value *TrueVal; in FoldShiftByConstant() local
824 if (match(Op0, m_Select(m_Value(Cond), m_Value(TrueVal), in FoldShiftByConstant()
827 if (!isa<Constant>(TrueVal) && FBO->getOperand(0) == TrueVal && in FoldShiftByConstant()
833 Value *NewShift = Builder.CreateBinOp(I.getOpcode(), TrueVal, C1); in FoldShiftByConstant()
H A DInstCombineAddSub.cpp2222 Value *Cond, *TrueVal, *FalseVal; in visitSub() local
2223 if (!match(Select, m_OneUse(m_Select(m_Value(Cond), m_Value(TrueVal), in visitSub()
2226 if (OtherHandOfSub != TrueVal && OtherHandOfSub != FalseVal) in visitSub()
2231 bool OtherHandOfSubIsTrueVal = OtherHandOfSub == TrueVal; in visitSub()
2232 Value *NewSub = SubBuilder(OtherHandOfSubIsTrueVal ? FalseVal : TrueVal); in visitSub()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DInstructionSimplify.cpp114 if (X == TrueVal || X == FalseVal || Y == TrueVal || Y == FalseVal) in foldSelectWithBinaryOp()
4425 std::swap(TrueVal, FalseVal); in simplifySelectWithICmpCond()
4481 if (match(TrueVal, in simplifySelectWithICmpCond()
4568 return TrueVal; in simplifySelectInst()
4589 return TrueVal; in simplifySelectInst()
4604 return TrueVal; in simplifySelectInst()
4631 if (TrueVal == FalseVal) in simplifySelectInst()
4632 return TrueVal; in simplifySelectInst()
4634 if (Cond == TrueVal) { in simplifySelectInst()
4644 if (match(TrueVal, m_One())) in simplifySelectInst()
[all …]
H A DValueTracking.cpp5960 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
5965 LHS = TrueVal; in matchFastFloatClamp()
6007 if (CmpRHS != TrueVal) { in matchClamp()
6009 std::swap(TrueVal, FalseVal); in matchClamp()
6154 LHS = TrueVal; in matchMinMax()
6253 OutputZeroVal = TrueVal; in matchSelectPattern()
6367 if (isKnownNegation(TrueVal, FalseVal)) { in matchSelectPattern()
6374 if (match(TrueVal, MaybeSExtCmpLHS)) { in matchSelectPattern()
6377 LHS = TrueVal; in matchSelectPattern()
6400 RHS = TrueVal; in matchSelectPattern()
[all …]
H A DLazyValueInfo.cpp815 ValueLatticeElement &TrueVal = *OptTrueVal; in solveBlockValueSelect() local
823 if (TrueVal.isConstantRange() || FalseVal.isConstantRange()) { in solveBlockValueSelect()
825 getConstantRangeOrFull(TrueVal, SI->getType(), DL); in solveBlockValueSelect()
851 ResultCR, TrueVal.isConstantRangeIncludingUndef() || in solveBlockValueSelect()
858 TrueCR.abs(), TrueVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
879 TrueVal = intersect(TrueVal, in solveBlockValueSelect()
884 ValueLatticeElement Result = TrueVal; in solveBlockValueSelect()
H A DIVDescriptors.cpp734 Value *TrueVal = SI->getTrueValue(); in isConditionalRdxPattern() local
738 if ((isa<PHINode>(*TrueVal) && isa<PHINode>(*FalseVal)) || in isConditionalRdxPattern()
739 (!isa<PHINode>(*TrueVal) && !isa<PHINode>(*FalseVal))) in isConditionalRdxPattern()
743 isa<PHINode>(*TrueVal) ? dyn_cast<Instruction>(FalseVal) in isConditionalRdxPattern()
744 : dyn_cast<Instruction>(TrueVal); in isConditionalRdxPattern()
H A DInlineCost.cpp2274 Value *TrueVal = SI.getTrueValue(); in visitSelectInst() local
2277 Constant *TrueC = dyn_cast<Constant>(TrueVal); in visitSelectInst()
2279 TrueC = SimplifiedValues.lookup(TrueVal); in visitSelectInst()
2297 ConstantOffsetPtrs.lookup(TrueVal); in visitSelectInst()
2303 if (auto *SROAArg = getSROAArgForValueOrNull(TrueVal)) in visitSelectInst()
2312 Value *SelectedV = CondC->isAllOnesValue() ? TrueVal in visitSelectInst()
H A DScalarEvolution.cpp6137 const SCEV *LA = getSCEV(TrueVal); in createNodeForSelectOrPHIInstWithICmpInstCond()
6180 std::swap(TrueVal, FalseVal); in createNodeForSelectOrPHIInstWithICmpInstCond()
6187 const SCEV *TrueValExpr = getSCEV(TrueVal); // C+y in createNodeForSelectOrPHIInstWithICmpInstCond()
6199 isa<ConstantInt>(TrueVal) && cast<ConstantInt>(TrueVal)->isZero()) { in createNodeForSelectOrPHIInstWithICmpInstCond()
6258 const auto *SETrue = SE->getSCEV(TrueVal); in createNodeForSelectViaUMinSeq()
6264 Value *V, Value *Cond, Value *TrueVal, Value *FalseVal) { in createNodeForSelectOrPHIViaUMinSeq() argument
6266 assert(TrueVal->getType() == FalseVal->getType() && in createNodeForSelectOrPHIViaUMinSeq()
6267 V->getType() == TrueVal->getType() && in createNodeForSelectOrPHIViaUMinSeq()
6287 return getSCEV(CI->isOne() ? TrueVal : FalseVal); in createNodeForSelectOrPHI()
7104 const APInt *TrueVal, *FalseVal; in getRangeViaFactoring() local
[all …]
/openbsd/gnu/llvm/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowAnalysisContext.h80 : S(std::move(S)), TrueVal(createAtomicBoolValue()), in S()
165 return Value ? TrueVal : FalseVal; in getBoolLiteralValue()
358 AtomicBoolValue &TrueVal; variable
/openbsd/gnu/llvm/llvm/lib/IR/
H A DProfDataUtils.cpp135 bool extractBranchWeights(const Instruction &I, uint64_t &TrueVal, in extractBranchWeights() argument
150 TrueVal = Weights[0]; in extractBranchWeights()
H A DConstantFold.cpp596 if (ConstantExpr *TrueVal = dyn_cast<ConstantExpr>(V1)) { in ConstantFoldSelectInstruction() local
597 if (TrueVal->getOpcode() == Instruction::Select) in ConstantFoldSelectInstruction()
598 if (TrueVal->getOperand(0) == Cond) in ConstantFoldSelectInstruction()
599 return ConstantExpr::getSelect(Cond, TrueVal->getOperand(1), V2); in ConstantFoldSelectInstruction()
/openbsd/gnu/llvm/llvm/include/llvm/IR/
H A DProfDataUtils.h83 bool extractBranchWeights(const Instruction &I, uint64_t &TrueVal,
/openbsd/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationPlanner.h154 VPValue *createSelect(VPValue *Cond, VPValue *TrueVal, VPValue *FalseVal,
156 return createNaryOp(Instruction::Select, {Cond, TrueVal, FalseVal}, DL,
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/Scalar/
H A DSROA.h51 using TrueVal = Bitfield::Element<bool, 0, 1>; // Low 0'th bit. variable
/openbsd/gnu/llvm/llvm/lib/TableGen/
H A DTGLexer.h62 TrueVal, FalseVal, enumerator
H A DTGLexer.cpp358 .Case("true", tgtok::TrueVal) in LexIdentifier()
/openbsd/gnu/llvm/llvm/lib/Target/VE/
H A DVECustomDAG.cpp413 auto TrueVal = DAG.getConstant(-1, DL, MVT::i32); in getConstantMask() local
415 auto Res = getNode(VEISD::VEC_BROADCAST, MaskVT, {TrueVal, AVL}); in getConstantMask()
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h250 Value *simplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
H A DScalarEvolution.h1717 Value *TrueVal, Value *FalseVal);
1721 Value *TrueVal,
1728 const SCEV *createNodeForSelectOrPHI(Value *V, Value *Cond, Value *TrueVal,
H A DValueTracking.h762 CmpInst *CmpI, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS,
/openbsd/gnu/llvm/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp5371 SDValue KTmp = isa<ConstantSDNode>(TrueVal) ? TrueVal : FalseVal; in isLowerSaturatingConditional()
5372 V = (KTmp == TrueVal) ? FalseVal : TrueVal; in isLowerSaturatingConditional()
5449 std::swap(TrueVal, FalseVal); in LowerSELECT_CC()
5474 FalseVal = TrueVal; in LowerSELECT_CC()
12438 SDValue TrueVal = OtherOp; in combineSelectAndUse() local
12443 std::swap(TrueVal, FalseVal); in combineSelectAndUse()
13053 SDValue TrueVal; in PerformSELECTCombine() local
13062 TrueVal = N->getOperand(1); in PerformSELECTCombine()
13068 TrueVal = N->getOperand(2); in PerformSELECTCombine()
13103 switch (TrueVal->getOpcode()) { in PerformSELECTCombine()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/Lanai/
H A DLanaiISelLowering.cpp1430 SDValue TrueVal = OtherOp; in combineSelectAndUse() local
1435 std::swap(TrueVal, FalseVal); in combineSelectAndUse()
1437 return DAG.getNode(ISD::SELECT, SDLoc(N), VT, CCOp, TrueVal, FalseVal); in combineSelectAndUse()
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp969 Constant *TrueVal = getKnownConstant(SI->getTrueValue(), Preference); in computeValueKnownInPredecessorsImpl() local
972 if ((TrueVal || FalseVal) && in computeValueKnownInPredecessorsImpl()
988 KnownCond = (TrueVal != nullptr); in computeValueKnownInPredecessorsImpl()
992 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in computeValueKnownInPredecessorsImpl()
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/GlobalISel/
H A DCombinerHelper.h878 bool matchFPSelectToMinMax(Register Dst, Register Cond, Register TrueVal,

12