Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp573 std::swap(TrueVal, FalseVal); in foldSelectICmpLshrAshr()
747 std::swap(TrueVal, FalseVal); in foldSelectZeroOrMul()
788 std::swap(TrueVal, FalseVal); in canonicalizeSaturatedSubtract()
920 if (!match(FalseVal, in foldSelectCtlzToCttz()
959 Value *SelectArg = FalseVal; in foldSelectCttzCtlz()
1049 CmpLHS = FalseVal; in adjustMinMax()
1062 CmpLHS = FalseVal; in adjustMinMax()
1076 std::swap(FalseVal, TrueVal); in adjustMinMax()
1081 Sel.setOperand(2, FalseVal); in adjustMinMax()
2707 if (CondVal == FalseVal) in visitSelectInst()
[all …]
H A DInstCombineShifts.cpp555 Value *FalseVal = SI->getFalseValue(); in canEvaluateShifted() local
557 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted()
793 Value *FalseVal; in FoldShiftByConstant() local
795 m_Value(FalseVal)))) { in FoldShiftByConstant()
797 if (!isa<Constant>(FalseVal) && TBO->getOperand(0) == FalseVal && in FoldShiftByConstant()
803 Value *NewShift = Builder.CreateBinOp(I.getOpcode(), FalseVal, C1); in FoldShiftByConstant()
H A DInstCombineAddSub.cpp2083 Value *Cond, *TrueVal, *FalseVal; in visitSub() local
2085 m_Value(FalseVal))))) in visitSub()
2087 if (OtherHandOfSub != TrueVal && OtherHandOfSub != FalseVal) 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)
13 define i8 @t0_sub_from_trueval(i1 %c, i8 %Op0, i8 %FalseVal) {
19 %o = select i1 %c, i8 %Op0, i8 %FalseVal, !prof !0 ; while there, ensure preservation of prof md
36 define <2 x i8> @t2_vec(i1 %c, <2 x i8> %Op0, <2 x i8> %FalseVal) {
42 %o = select i1 %c, <2 x i8> %Op0, <2 x i8> %FalseVal
51 define i8 @n3_extrause(i1 %c, i8 %Op0, i8 %FalseVal) {
58 %o = select i1 %c, i8 %Op0, i8 %FalseVal
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)
13 define i8 @t0_sub_of_trueval(i1 %c, i8 %Op1, i8 %FalseVal) {
19 %o = select i1 %c, i8 %Op1, i8 %FalseVal, !prof !0 ; while there, ensure preservation of prof md
36 define <2 x i8> @t2_vec(i1 %c, <2 x i8> %Op1, <2 x i8> %FalseVal) {
42 %o = select i1 %c, <2 x i8> %Op1, <2 x i8> %FalseVal
51 define i8 @n3_extrause(i1 %c, i8 %Op1, i8 %FalseVal) {
58 %o = select i1 %c, i8 %Op1, i8 %FalseVal
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.h63 FalseVal(createAtomicBoolValue()) { in DataflowAnalysisContext()
165 return Value ? TrueVal : FalseVal; in getBoolLiteralValue()
334 AtomicBoolValue &FalseVal; 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()
4323 return FalseVal; in simplifySelectWithICmpCond()
4329 return FalseVal; in simplifySelectWithICmpCond()
4333 return FalseVal; in simplifySelectWithICmpCond()
4353 return FalseVal; in simplifySelectWithICmpCond()
4360 return FalseVal; in simplifySelectWithICmpCond()
4412 return isa<Constant>(FalseVal) ? FalseVal : TrueVal; in simplifySelectInst()
4421 return FalseVal; in simplifySelectInst()
4447 if (TrueVal == FalseVal) in simplifySelectInst()
[all …]
H A DValueTracking.cpp5776 if (CmpRHS == FalseVal) { in matchFastFloatClamp()
5777 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
5783 RHS = FalseVal; in matchFastFloatClamp()
5795 if (match(FalseVal, in matchFastFloatClamp()
5805 if (match(FalseVal, in matchFastFloatClamp()
5826 std::swap(TrueVal, FalseVal); in matchClamp()
5972 RHS = FalseVal; in matchMinMax()
6072 OutputZeroVal = FalseVal; in matchSelectPattern()
6186 RHS = FalseVal; in matchSelectPattern()
6207 LHS = FalseVal; in matchSelectPattern()
[all …]
H A DLazyValueInfo.cpp817 ValueLatticeElement &FalseVal = *OptFalseVal; in solveBlockValueSelect() local
819 if (TrueVal.isConstantRange() || FalseVal.isConstantRange()) { in solveBlockValueSelect()
823 getConstantRangeOrFull(FalseVal, SI->getType(), DL); in solveBlockValueSelect()
848 FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
857 FalseCR.abs(), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
864 Zero.sub(TrueCR.abs()), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
867 Zero.sub(FalseCR.abs()), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
877 FalseVal = intersect(FalseVal, in solveBlockValueSelect()
881 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()
H A DCFLGraph.h346 auto *FalseVal = Inst.getFalseValue(); in visitSelectInst() local
348 addAssignEdge(FalseVal, &Inst); in visitSelectInst()
H A DInlineCost.cpp2223 Value *FalseVal = SI.getFalseValue(); in visitSelectInst() local
2228 Constant *FalseC = dyn_cast<Constant>(FalseVal); in visitSelectInst()
2230 FalseC = SimplifiedValues.lookup(FalseVal); in visitSelectInst()
2247 ConstantOffsetPtrs.lookup(FalseVal); in visitSelectInst()
2261 : (CondC->isNullValue()) ? FalseVal in visitSelectInst()
H A DScalarEvolution.cpp5992 const SCEV *RA = getSCEV(FalseVal); in createNodeForSelectOrPHIInstWithICmpInstCond()
6034 std::swap(TrueVal, FalseVal); in createNodeForSelectOrPHIInstWithICmpInstCond()
6042 const SCEV *FalseValExpr = getSCEV(FalseVal); // x+y in createNodeForSelectOrPHIInstWithICmpInstCond()
6058 const SCEV *FalseValExpr = getSCEV(FalseVal); in createNodeForSelectOrPHIInstWithICmpInstCond()
6114 const auto *SEFalse = SE->getSCEV(FalseVal); in createNodeForSelectViaUMinSeq()
6119 Value *V, Value *Cond, Value *TrueVal, Value *FalseVal) { in createNodeForSelectOrPHIViaUMinSeq() argument
6121 assert(TrueVal->getType() == FalseVal->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/DebugInfo/CodeView/
H A DRecordSerialization.cpp38 bool FalseVal = false; in consume() local
82 Num = APSInt(APInt(32, N, FalseVal), true); in consume()
/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.cpp355 .Case("false", tgtok::FalseVal) in LexIdentifier()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h246 Value *simplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
H A DScalarEvolution.h1611 Value *FalseVal);
1616 Value *FalseVal);
1623 Value *FalseVal);
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.cpp5447 FalseVal = TrueVal; in LowerSELECT_CC()
12369 std::swap(TrueVal, FalseVal); in combineSelectAndUse()
12980 SDValue FalseVal; in PerformSELECTCombine() local
12989 FalseVal = N->getOperand(2); in PerformSELECTCombine()
12995 FalseVal = N->getOperand(3); in PerformSELECTCombine()
13035 std::swap(TrueVal, FalseVal); in PerformSELECTCombine()
18118 if (CC == ARMCC::NE && FalseVal == RHS && FalseVal != LHS) { in PerformCMOVCombine()
18164 if (isNullConstant(FalseVal)) { in PerformCMOVCombine()
18203 FalseVal = Sub; in PerformCMOVCombine()
18218 FalseVal = Sub; in PerformCMOVCombine()
[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/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp434 Metadata *FalseVal = in DisableAllLoopOptsOnLoop() local
438 {MDString::get(Context, "llvm.loop.vectorize.enable"), FalseVal}); in DisableAllLoopOptsOnLoop()
443 {MDString::get(Context, "llvm.loop.distribute.enable"), FalseVal}); in DisableAllLoopOptsOnLoop()
/llvm-project-15.0.7/llvm/lib/Target/Lanai/
H A DLanaiISelLowering.cpp1436 SDValue FalseVal = 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/IR/
H A DConstantFold.cpp601 if (ConstantExpr *FalseVal = dyn_cast<ConstantExpr>(V2)) { in ConstantFoldSelectInstruction() local
602 if (FalseVal->getOpcode() == Instruction::Select) in ConstantFoldSelectInstruction()
603 if (FalseVal->getOperand(0) == Cond) in ConstantFoldSelectInstruction()
604 return ConstantExpr::getSelect(Cond, V1, FalseVal->getOperand(2)); in ConstantFoldSelectInstruction()

12