Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp569 std::swap(TrueVal, FalseVal); in foldSelectICmpLshrAshr()
732 std::swap(TrueVal, FalseVal); in canonicalizeSaturatedSubtract()
734 if (!match(FalseVal, m_Zero())) in canonicalizeSaturatedSubtract()
862 std::swap(TrueVal, FalseVal); in foldSelectCtlzToCttz()
864 if (!match(FalseVal, in foldSelectCtlzToCttz()
903 Value *SelectArg = FalseVal; in foldSelectCttzCtlz()
993 CmpLHS = FalseVal; in adjustMinMax()
1006 CmpLHS = FalseVal; in adjustMinMax()
1020 std::swap(FalseVal, TrueVal); in adjustMinMax()
1025 Sel.setOperand(2, FalseVal); in adjustMinMax()
[all …]
H A DInstCombineShifts.cpp512 Value *FalseVal = SI->getFalseValue(); in canEvaluateShifted() local
514 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted()
850 Value *FalseVal; in FoldShiftByConstant() local
852 m_Value(FalseVal)))) { in FoldShiftByConstant()
854 if (!isa<Constant>(FalseVal) && TBO->getOperand(0) == FalseVal && in FoldShiftByConstant()
861 Builder.CreateBinOp(I.getOpcode(), FalseVal, Op1); in FoldShiftByConstant()
H A DInstCombineAddSub.cpp2001 Value *Cond, *TrueVal, *FalseVal; in visitSub() local
2003 m_Value(FalseVal))))) in visitSub()
2005 if (OtherHandOfSub != TrueVal && OtherHandOfSub != FalseVal) in visitSub()
2011 Value *NewSub = SubBuilder(OtherHandOfSubIsTrueVal ? FalseVal : TrueVal); in visitSub()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp114 if (X == TrueVal || X == FalseVal || Y == TrueVal || Y == FalseVal) in foldSelectWithBinaryOp()
4128 return FalseVal; in simplifySelectWithICmpCond()
4134 return FalseVal; in simplifySelectWithICmpCond()
4138 return FalseVal; in simplifySelectWithICmpCond()
4158 return FalseVal; in simplifySelectWithICmpCond()
4161 FalseVal || in simplifySelectWithICmpCond()
4164 FalseVal) in simplifySelectWithICmpCond()
4165 return FalseVal; in simplifySelectWithICmpCond()
4217 return isa<Constant>(FalseVal) ? FalseVal : TrueVal; in SimplifySelectInst()
4226 return FalseVal; in SimplifySelectInst()
[all …]
H A DValueTracking.cpp5579 if (CmpRHS == FalseVal) { in matchFastFloatClamp()
5580 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
5586 RHS = FalseVal; in matchFastFloatClamp()
5598 if (match(FalseVal, in matchFastFloatClamp()
5608 if (match(FalseVal, in matchFastFloatClamp()
5629 std::swap(TrueVal, FalseVal); in matchClamp()
5775 RHS = FalseVal; in matchMinMax()
5823 if (match(FalseVal, m_Zero()) && in matchMinMax()
5891 OutputZeroVal = FalseVal; in matchSelectPattern()
6005 RHS = FalseVal; in matchSelectPattern()
[all …]
H A DLazyValueInfo.cpp808 ValueLatticeElement &FalseVal = *OptFalseVal; in solveBlockValueSelect() local
810 if (TrueVal.isConstantRange() && FalseVal.isConstantRange()) { in solveBlockValueSelect()
812 const ConstantRange &FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect()
836 FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
845 FalseCR.abs(), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
852 Zero.sub(TrueCR.abs()), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
855 Zero.sub(FalseCR.abs()), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
865 FalseVal = intersect(FalseVal, in solveBlockValueSelect()
869 Result.mergeIn(FalseVal); in solveBlockValueSelect()
H A DIVDescriptors.cpp569 Value *FalseVal = SI->getFalseValue(); in isConditionalRdxPattern() local
572 if ((isa<PHINode>(*TrueVal) && isa<PHINode>(*FalseVal)) || in isConditionalRdxPattern()
573 (!isa<PHINode>(*TrueVal) && !isa<PHINode>(*FalseVal))) in isConditionalRdxPattern()
577 isa<PHINode>(*TrueVal) ? dyn_cast<Instruction>(FalseVal) in isConditionalRdxPattern()
H A DCFLGraph.h346 auto *FalseVal = Inst.getFalseValue(); in visitSelectInst() local
348 addAssignEdge(FalseVal, &Inst); in visitSelectInst()
H A DInlineCost.cpp2133 Value *FalseVal = SI.getFalseValue(); in visitSelectInst() local
2138 Constant *FalseC = dyn_cast<Constant>(FalseVal); in visitSelectInst()
2140 FalseC = SimplifiedValues.lookup(FalseVal); in visitSelectInst()
2157 ConstantOffsetPtrs.lookup(FalseVal); in visitSelectInst()
2171 : (CondC->isNullValue()) ? FalseVal in visitSelectInst()
/freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationPlanner.h148 VPValue *createSelect(VPValue *Cond, VPValue *TrueVal, VPValue *FalseVal) { in createSelect() argument
149 return createNaryOp(Instruction::Select, {Cond, TrueVal, FalseVal}); in createSelect()
/freebsd-13.1/contrib/llvm-project/llvm/lib/TableGen/
H A DTGLexer.h61 TrueVal, FalseVal, enumerator
H A DTGLexer.cpp357 .Case("false", tgtok::FalseVal) in LexIdentifier()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h247 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
H A DValueTracking.h729 CmpInst *CmpI, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp5381 FalseVal = TrueVal; in LowerSELECT_CC()
12156 std::swap(TrueVal, FalseVal); in combineSelectAndUse()
12767 SDValue FalseVal; in PerformSELECTCombine() local
12776 FalseVal = N->getOperand(2); in PerformSELECTCombine()
12782 FalseVal = N->getOperand(3); in PerformSELECTCombine()
12822 std::swap(TrueVal, FalseVal); in PerformSELECTCombine()
17210 if (CC == ARMCC::NE && FalseVal == RHS && FalseVal != LHS) { in PerformCMOVCombine()
17239 if (isNullConstant(FalseVal)) { in PerformCMOVCombine()
17278 FalseVal = Sub; in PerformCMOVCombine()
17293 FalseVal = Sub; in PerformCMOVCombine()
[all …]
H A DARMISelLowering.h942 SDValue getCMOV(const SDLoc &dl, EVT VT, SDValue FalseVal, SDValue TrueVal,
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.h361 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal) const;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiISelLowering.cpp1432 SDValue FalseVal = in combineSelectAndUse() local
1436 std::swap(TrueVal, FalseVal); in combineSelectAndUse()
1438 return DAG.getNode(ISD::SELECT, SDLoc(N), VT, CCOp, TrueVal, FalseVal); in combineSelectAndUse()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.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()
H A DJumpThreading.cpp954 Constant *FalseVal = getKnownConstant(SI->getFalseValue(), Preference); in computeValueKnownInPredecessorsImpl() local
956 if ((TrueVal || FalseVal) && in computeValueKnownInPredecessorsImpl()
976 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in computeValueKnownInPredecessorsImpl()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp609 if (ConstantExpr *FalseVal = dyn_cast<ConstantExpr>(V2)) { in ConstantFoldSelectInstruction() local
610 if (FalseVal->getOpcode() == Instruction::Select) in ConstantFoldSelectInstruction()
611 if (FalseVal->getOperand(0) == Cond) in ConstantFoldSelectInstruction()
612 return ConstantExpr::getSelect(Cond, V1, FalseVal->getOperand(2)); in ConstantFoldSelectInstruction()
H A DMetadata.cpp1397 uint64_t &FalseVal) const { in extractProfMetadata()
1416 FalseVal = CIFalse->getValue().getZExtValue(); in extractProfMetadata()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DOpenMPOpt.cpp2868 auto *FalseVal = in initialize() local
2870 return FalseVal; in initialize()
3070 auto *FalseVal = ConstantInt::getBool(Ctx, 0); in buildCustomStateMachine() local
3072 KernelInitCB->getArgOperandUse(InitUseStateMachineArgNo), *FalseVal); in buildCustomStateMachine()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp2889 Value *FalseVal = PN->getIncomingValueForBlock(IfFalse); in FoldTwoEntryPHINode() local
2891 Value *Sel = Builder.CreateSelect(IfCond, TrueVal, FalseVal, "", DomBI); in FoldTwoEntryPHINode()
3958 ConstantInt *FalseVal = dyn_cast<ConstantInt>(Select->getFalseValue()); in SimplifySwitchOnSelect() local
3959 if (!TrueVal || !FalseVal) in SimplifySwitchOnSelect()
3965 BasicBlock *FalseBB = SI->findCaseValue(FalseVal)->getCaseSuccessor(); in SimplifySwitchOnSelect()
3977 (uint32_t)Weights[SI->findCaseValue(FalseVal)->getSuccessorIndex()]; in SimplifySwitchOnSelect()

12