Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp573 std::swap(TrueVal, FalseVal); in foldSelectICmpLshrAshr()
960 Value *ValueOnZero = TrueVal; in foldSelectCttzCtlz()
1045 CmpLHS = TrueVal; in adjustMinMax()
1058 CmpLHS = TrueVal; in adjustMinMax()
1076 std::swap(FalseVal, TrueVal); in adjustMinMax()
1080 Sel.setOperand(1, TrueVal); in adjustMinMax()
1180 if (TrueVal != CmpLHS && in foldSelectValueEquivalence()
1202 if (TrueVal != CmpRHS && in foldSelectValueEquivalence()
2519 std::swap(TrueVal, X); in foldSelectWithFCmpToFabs()
2704 if (CondVal == TrueVal) in visitSelectInst()
[all …]
H A DInstCombineShifts.cpp554 Value *TrueVal = SI->getTrueValue(); in canEvaluateShifted() local
556 return canEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in canEvaluateShifted()
810 Value *TrueVal; in FoldShiftByConstant() local
811 if (match(Op0, m_Select(m_Value(Cond), m_Value(TrueVal), in FoldShiftByConstant()
814 if (!isa<Constant>(TrueVal) && FBO->getOperand(0) == TrueVal && in FoldShiftByConstant()
820 Value *NewShift = Builder.CreateBinOp(I.getOpcode(), TrueVal, C1); in FoldShiftByConstant()
H A DInstCombineAddSub.cpp2083 Value *Cond, *TrueVal, *FalseVal; in visitSub() local
2084 if (!match(Select, m_OneUse(m_Select(m_Value(Cond), m_Value(TrueVal), in visitSub()
2087 if (OtherHandOfSub != TrueVal && OtherHandOfSub != FalseVal) in visitSub()
2092 bool OtherHandOfSubIsTrueVal = OtherHandOfSub == TrueVal; in visitSub()
2093 Value *NewSub = SubBuilder(OtherHandOfSubIsTrueVal ? FalseVal : TrueVal); in visitSub()
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dsubtract-from-one-hand-of-select.ll5 ; sub %Op0, (select %Cond, %TrueVal, %FalseVal)
7 ; select %Cond, (sub %Op0, %TrueVal), (sub %Op0, %FalseVal)
23 define i8 @t1_sub_from_falseval(i1 %c, i8 %TrueVal, i8 %Op0) {
29 %o = select i1 %c, i8 %TrueVal, i8 %Op0, !prof !0 ; while there, ensure preservation of prof md
66 define i8 @n4_wrong_hands(i1 %c, i8 %TrueVal, i8 %FalseVal, i8 %Op0) {
72 %o = select i1 %c, i8 %TrueVal, i8 %FalseVal ; none of the hands is %Op0
H A Dsubtract-of-one-hand-of-select.ll5 ; sub (select %Cond, %TrueVal, %FalseVal), %Op1
7 ; select %Cond, (sub %TrueVal, %Op1), (sub %FalseVal, %Op1)
23 define i8 @t1_sub_of_falseval(i1 %c, i8 %TrueVal, i8 %Op1) {
29 %o = select i1 %c, i8 %TrueVal, i8 %Op1, !prof !0 ; while there, ensure preservation of prof md
66 define i8 @n4_wrong_hands(i1 %c, i8 %TrueVal, i8 %FalseVal, i8 %Op1) {
72 %o = select i1 %c, i8 %TrueVal, i8 %FalseVal ; none of the hands is %Op1
/llvm-project-15.0.7/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowAnalysisContext.h62 : S(std::move(S)), TrueVal(createAtomicBoolValue()), in DataflowAnalysisContext()
165 return Value ? TrueVal : FalseVal; in getBoolLiteralValue()
333 AtomicBoolValue &TrueVal; variable
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInstructionSimplify.cpp113 if (X == TrueVal || X == FalseVal || Y == TrueVal || Y == FalseVal) in foldSelectWithBinaryOp()
4274 std::swap(TrueVal, FalseVal); in simplifySelectWithICmpCond()
4330 if (match(TrueVal, in simplifySelectWithICmpCond()
4419 return TrueVal; in simplifySelectInst()
4447 if (TrueVal == FalseVal) in simplifySelectInst()
4448 return TrueVal; in simplifySelectInst()
4455 if (isa<PoisonValue>(TrueVal) || in simplifySelectInst()
4456 (Q.isUndefValue(TrueVal) && in simplifySelectInst()
4464 return TrueVal; in simplifySelectInst()
4469 match(TrueVal, m_Constant(TrueC)) && in simplifySelectInst()
[all …]
H A DValueTracking.cpp5777 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
5782 LHS = TrueVal; in matchFastFloatClamp()
5824 if (CmpRHS != TrueVal) { in matchClamp()
5826 std::swap(TrueVal, FalseVal); in matchClamp()
5971 LHS = TrueVal; in matchMinMax()
6069 OutputZeroVal = TrueVal; in matchSelectPattern()
6175 if (isKnownNegation(TrueVal, FalseVal)) { in matchSelectPattern()
6182 if (match(TrueVal, MaybeSExtCmpLHS)) { in matchSelectPattern()
6185 LHS = TrueVal; in matchSelectPattern()
6208 RHS = TrueVal; in matchSelectPattern()
[all …]
H A DLazyValueInfo.cpp811 ValueLatticeElement &TrueVal = *OptTrueVal; in solveBlockValueSelect() local
819 if (TrueVal.isConstantRange() || FalseVal.isConstantRange()) { in solveBlockValueSelect()
821 getConstantRangeOrFull(TrueVal, SI->getType(), DL); in solveBlockValueSelect()
847 ResultCR, TrueVal.isConstantRangeIncludingUndef() || in solveBlockValueSelect()
854 TrueCR.abs(), TrueVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
875 TrueVal = intersect(TrueVal, in solveBlockValueSelect()
880 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 DCFLGraph.h345 auto *TrueVal = Inst.getTrueValue(); in visitSelectInst() local
347 addAssignEdge(TrueVal, &Inst); in visitSelectInst()
H A DInlineCost.cpp2222 Value *TrueVal = SI.getTrueValue(); in visitSelectInst() local
2225 Constant *TrueC = dyn_cast<Constant>(TrueVal); in visitSelectInst()
2227 TrueC = SimplifiedValues.lookup(TrueVal); in visitSelectInst()
2245 ConstantOffsetPtrs.lookup(TrueVal); in visitSelectInst()
2251 if (auto *SROAArg = getSROAArgForValueOrNull(TrueVal)) in visitSelectInst()
2260 Value *SelectedV = CondC->isAllOnesValue() ? TrueVal in visitSelectInst()
H A DScalarEvolution.cpp5991 const SCEV *LA = getSCEV(TrueVal); in createNodeForSelectOrPHIInstWithICmpInstCond()
6034 std::swap(TrueVal, FalseVal); in createNodeForSelectOrPHIInstWithICmpInstCond()
6041 const SCEV *TrueValExpr = getSCEV(TrueVal); // C+y in createNodeForSelectOrPHIInstWithICmpInstCond()
6053 isa<ConstantInt>(TrueVal) && cast<ConstantInt>(TrueVal)->isZero()) { in createNodeForSelectOrPHIInstWithICmpInstCond()
6113 const auto *SETrue = SE->getSCEV(TrueVal); in createNodeForSelectViaUMinSeq()
6121 assert(TrueVal->getType() == FalseVal->getType() && in createNodeForSelectOrPHIViaUMinSeq()
6122 V->getType() == TrueVal->getType() && in createNodeForSelectOrPHIViaUMinSeq()
6142 return getSCEV(CI->isOne() ? TrueVal : FalseVal); in createNodeForSelectOrPHI()
6147 I, ICI, TrueVal, FalseVal); in createNodeForSelectOrPHI()
6877 const APInt *TrueVal, *FalseVal; in getRangeViaFactoring() local
[all …]
/llvm-project-15.0.7/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,
/llvm-project-15.0.7/llvm/lib/TableGen/
H A DTGLexer.h62 TrueVal, FalseVal, enumerator
H A DTGLexer.cpp354 .Case("true", tgtok::TrueVal) in LexIdentifier()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h246 Value *simplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
H A DScalarEvolution.h1610 Value *TrueVal,
1615 Value *TrueVal,
1622 const SCEV *createNodeForSelectOrPHI(Value *V, Value *Cond, Value *TrueVal,
H A DValueTracking.h770 CmpInst *CmpI, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS,
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp5344 SDValue KTmp = isa<ConstantSDNode>(TrueVal) ? TrueVal : FalseVal; in isLowerSaturatingConditional()
5345 V = (KTmp == TrueVal) ? FalseVal : TrueVal; in isLowerSaturatingConditional()
5422 std::swap(TrueVal, FalseVal); in LowerSELECT_CC()
5447 FalseVal = TrueVal; in LowerSELECT_CC()
12364 SDValue TrueVal = OtherOp; in combineSelectAndUse() local
12369 std::swap(TrueVal, FalseVal); in combineSelectAndUse()
12979 SDValue TrueVal; in PerformSELECTCombine() local
12988 TrueVal = N->getOperand(1); in PerformSELECTCombine()
12994 TrueVal = N->getOperand(2); in PerformSELECTCombine()
13029 switch (TrueVal->getOpcode()) { in PerformSELECTCombine()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstruction.h341 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal) const;
/llvm-project-15.0.7/llvm/lib/Target/Lanai/
H A DLanaiISelLowering.cpp1435 SDValue TrueVal = OtherOp; in combineSelectAndUse() local
1440 std::swap(TrueVal, FalseVal); in combineSelectAndUse()
1442 return DAG.getNode(ISD::SELECT, SDLoc(N), VT, CCOp, TrueVal, FalseVal); in combineSelectAndUse()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp946 Constant *TrueVal = getKnownConstant(SI->getTrueValue(), Preference); in computeValueKnownInPredecessorsImpl() local
949 if ((TrueVal || FalseVal) && in computeValueKnownInPredecessorsImpl()
965 KnownCond = (TrueVal != nullptr); in computeValueKnownInPredecessorsImpl()
969 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in computeValueKnownInPredecessorsImpl()
/llvm-project-15.0.7/llvm/lib/IR/
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()

12