Home
last modified time | relevance | path

Searched refs:FalseVal (Results 1 – 25 of 42) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp677 std::swap(TrueVal, FalseVal); in foldSelectICmpLshrAshr()
754 Y = FalseVal; in foldSelectICmpAndBinOp()
857 std::swap(TrueVal, FalseVal); in foldSelectZeroOrMul()
899 std::swap(TrueVal, FalseVal); in canonicalizeSaturatedSubtract()
1086 if (!match(FalseVal, in foldSelectCtlzToCttz()
1128 Value *SelectArg = FalseVal; in foldSelectCttzCtlz()
2612 FalseVal == RemRes) in foldSelectWithSRem()
2621 FalseVal == RemRes) in foldSelectWithSRem()
2855 Value *FalseVal = nullptr; member
3476 MatchCmp0 = FalseVal; in visitSelectInst()
[all …]
H A DInstCombineShifts.cpp590 Value *FalseVal = SI->getFalseValue(); in canEvaluateShifted() local
592 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted()
840 Value *FalseVal; in FoldShiftByConstant() local
842 m_Value(FalseVal)))) { in FoldShiftByConstant()
844 if (!isa<Constant>(FalseVal) && TBO->getOperand(0) == FalseVal && in FoldShiftByConstant()
850 Value *NewShift = Builder.CreateBinOp(I.getOpcode(), FalseVal, C1); in FoldShiftByConstant()
H A DInstructionCombining.cpp1005 Value *A, *CondVal, *TrueVal, *FalseVal; in foldBinOpOfSelectAndCastOfSelectCondition() local
1012 m_Value(FalseVal))); in foldBinOpOfSelectAndCastOfSelectCondition()
1047 NewFoldedConst(true, FalseVal)); in foldBinOpOfSelectAndCastOfSelectCondition()
1053 NewFoldedConst(false, FalseVal)); in foldBinOpOfSelectAndCastOfSelectCondition()
1233 Value *FalseVal = LHSInst->getOperand(2); in matchSymmetricPair() local
1235 FalseVal == RHSInst->getOperand(1)) in matchSymmetricPair()
1236 return std::pair(TrueVal, FalseVal); in matchSymmetricPair()
H A DInstCombineAddSub.cpp2471 Value *Cond, *TrueVal, *FalseVal; in visitSub() local
2473 m_Value(FalseVal))))) in visitSub()
2475 if (OtherHandOfSub != TrueVal && OtherHandOfSub != FalseVal) in visitSub()
2481 Value *NewSub = SubBuilder(OtherHandOfSubIsTrueVal ? FalseVal : TrueVal); in visitSub()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp118 if (X == TrueVal || X == FalseVal || Y == TrueVal || Y == FalseVal) in foldSelectWithBinaryOp()
4602 return FalseVal; in simplifySelectWithICmpEq()
4606 return FalseVal; in simplifySelectWithICmpEq()
4677 return FalseVal; in simplifySelectWithICmpCond()
4683 return FalseVal; in simplifySelectWithICmpCond()
4687 return FalseVal; in simplifySelectWithICmpCond()
4783 return isa<Constant>(FalseVal) ? FalseVal : TrueVal; in simplifySelectInst()
4792 return FalseVal; in simplifySelectInst()
4807 return FalseVal; in simplifySelectInst()
4855 return FalseVal; in simplifySelectInst()
[all …]
H A DValueTracking.cpp7366 if (CmpRHS == FalseVal) { in matchFastFloatClamp()
7367 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
7373 RHS = FalseVal; in matchFastFloatClamp()
7385 if (match(FalseVal, in matchFastFloatClamp()
7395 if (match(FalseVal, in matchFastFloatClamp()
7416 std::swap(TrueVal, FalseVal); in matchClamp()
7562 RHS = FalseVal; in matchMinMax()
7663 OutputZeroVal = FalseVal; in matchSelectPattern()
7785 RHS = FalseVal; in matchSelectPattern()
7806 LHS = FalseVal; in matchSelectPattern()
[all …]
H A DLazyValueInfo.cpp856 ValueLatticeElement &FalseVal = *OptFalseVal; in solveBlockValueSelect() local
858 if (TrueVal.isConstantRange() || FalseVal.isConstantRange()) { in solveBlockValueSelect()
860 const ConstantRange &FalseCR = toConstantRange(FalseVal, SI->getType()); in solveBlockValueSelect()
885 FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
894 FalseCR.abs(), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
901 Zero.sub(TrueCR.abs()), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
904 Zero.sub(FalseCR.abs()), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
919 FalseVal = in solveBlockValueSelect()
920 intersect(FalseVal, *getValueFromCondition(SI->getFalseValue(), Cond, in solveBlockValueSelect()
926 Result.mergeIn(FalseVal); in solveBlockValueSelect()
H A DIVDescriptors.cpp735 Value *FalseVal = SI->getFalseValue(); 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()
760 if (!IPhi || IPhi != FalseVal) in isConditionalRdxPattern()
H A DInlineCost.cpp2364 Value *FalseVal = SI.getFalseValue(); in visitSelectInst() local
2369 Constant *FalseC = dyn_cast<Constant>(FalseVal); in visitSelectInst()
2371 FalseC = SimplifiedValues.lookup(FalseVal); in visitSelectInst()
2388 ConstantOffsetPtrs.lookup(FalseVal); in visitSelectInst()
2402 : (CondC->isNullValue()) ? FalseVal in visitSelectInst()
H A DScalarEvolution.cpp6099 const SCEV *RA = getSCEV(FalseVal); in createNodeForSelectOrPHIInstWithICmpInstCond()
6141 std::swap(TrueVal, FalseVal); in createNodeForSelectOrPHIInstWithICmpInstCond()
6149 const SCEV *FalseValExpr = getSCEV(FalseVal); // x+y in createNodeForSelectOrPHIInstWithICmpInstCond()
6165 const SCEV *FalseValExpr = getSCEV(FalseVal); in createNodeForSelectOrPHIInstWithICmpInstCond()
6214 Value *FalseVal) { in createNodeForSelectViaUMinSeq() argument
6220 const auto *SEFalse = SE->getSCEV(FalseVal); in createNodeForSelectViaUMinSeq()
6225 Value *V, Value *Cond, Value *TrueVal, Value *FalseVal) { in createNodeForSelectOrPHIViaUMinSeq() argument
6227 assert(TrueVal->getType() == FalseVal->getType() && in createNodeForSelectOrPHIViaUMinSeq()
6248 return getSCEV(CI->isOne() ? TrueVal : FalseVal); in createNodeForSelectOrPHI()
7146 const APInt *TrueVal, *FalseVal; in getRangeViaFactoring() local
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DProfDataUtils.cpp136 uint64_t &FalseVal) { in extractBranchWeights() argument
151 FalseVal = Weights[1]; in extractBranchWeights()
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DRecordSerialization.cpp38 bool FalseVal = false; in consume() local
82 Num = APSInt(APInt(32, N, FalseVal), true); in consume()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationPlanner.h170 VPValue *createSelect(VPValue *Cond, VPValue *TrueVal, VPValue *FalseVal,
174 FMFs ? new VPInstruction(Instruction::Select, {Cond, TrueVal, FalseVal},
176 : new VPInstruction(Instruction::Select, {Cond, TrueVal, FalseVal},
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DProfDataUtils.h89 uint64_t &FalseVal);
/freebsd-14.2/contrib/llvm-project/llvm/lib/TableGen/
H A DTGLexer.h59 FalseVal, enumerator
H A DTGLexer.cpp359 .Case("false", tgtok::FalseVal) in LexIdentifier()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopConstrainer.cpp436 Metadata *FalseVal = in DisableAllLoopOptsOnLoop() local
440 {MDString::get(Context, "llvm.loop.vectorize.enable"), FalseVal}); in DisableAllLoopOptsOnLoop()
445 {MDString::get(Context, "llvm.loop.distribute.enable"), FalseVal}); in DisableAllLoopOptsOnLoop()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h162 Value *simplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
H A DScalarEvolution.h1720 Value *TrueVal, Value *FalseVal);
1725 Value *FalseVal);
1732 Value *FalseVal);
H A DValueTracking.h1091 CmpInst *CmpI, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp5487 FalseVal = TrueVal; in LowerSELECT_CC()
12592 std::swap(TrueVal, FalseVal); in combineSelectAndUse()
13203 SDValue FalseVal; in PerformSELECTCombine() local
13212 FalseVal = N->getOperand(2); in PerformSELECTCombine()
13218 FalseVal = N->getOperand(3); in PerformSELECTCombine()
13258 std::swap(TrueVal, FalseVal); in PerformSELECTCombine()
18398 if (CC == ARMCC::NE && FalseVal == RHS && FalseVal != LHS) { in PerformCMOVCombine()
18439 if (isNullConstant(FalseVal)) { in PerformCMOVCombine()
18478 FalseVal = Sub; in PerformCMOVCombine()
18493 FalseVal = Sub; in PerformCMOVCombine()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DSelectOptimize.cpp900 uint64_t &TrueVal, uint64_t &FalseVal) { in extractBranchWeights() argument
902 return extractBranchWeights(*SI.getI(), TrueVal, FalseVal); in extractBranchWeights()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiISelLowering.cpp1433 SDValue FalseVal = in combineSelectAndUse() local
1437 std::swap(TrueVal, FalseVal); in combineSelectAndUse()
1439 return DAG.getNode(ISD::SELECT, SDLoc(N), VT, CCOp, TrueVal, FalseVal); in combineSelectAndUse()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DCombinerHelper.h906 Register FalseVal, BuildFnTy &MatchInfo);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp1682 Value *FalseVal = I.getFalseValue(); in visitSelectInst() local
1704 auto *IIFalse = dyn_cast<IntrinsicInst>(FalseVal); in visitSelectInst()
1711 } else if (Pred == FCmpInst::FCMP_ORD && FalseVal == CmpVal && IITrue && in visitSelectInst()

12