Home
last modified time | relevance | path

Searched refs:ICmp (Results 1 – 25 of 160) sorted by relevance

1234567

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp86 bool makeIVComparisonInvariant(ICmpInst *ICmp, Value *IVOperand);
87 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand);
165 bool SimplifyIndvar::makeIVComparisonInvariant(ICmpInst *ICmp, in makeIVComparisonInvariant() argument
168 ICmpInst::Predicate Pred = ICmp->getPredicate(); in makeIVComparisonInvariant()
169 if (IVOperand != ICmp->getOperand(0)) { in makeIVComparisonInvariant()
171 assert(IVOperand == ICmp->getOperand(1) && "Can't find IVOperand"); in makeIVComparisonInvariant()
178 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in makeIVComparisonInvariant()
179 const SCEV *S = SE->getSCEVAtScope(ICmp->getOperand(IVOperIdx), ICmpLoop); in makeIVComparisonInvariant()
180 const SCEV *X = SE->getSCEVAtScope(ICmp->getOperand(1 - IVOperIdx), ICmpLoop); in makeIVComparisonInvariant()
197 CheapExpansions[S] = ICmp->getOperand(IVOperIdx); in makeIVComparisonInvariant()
[all …]
DLoopUtils.cpp524 case Instruction::ICmp: in isRecurrenceInstr()
703 return Instruction::ICmp; in getRecurrenceBinOp()
1547 if (Op != Instruction::ICmp && Op != Instruction::FCmp) { in getOrderedReduction()
1590 if (Op != Instruction::ICmp && Op != Instruction::FCmp) { in getShuffleReduction()
1653 case Instruction::ICmp: in createSimpleTargetReduction()
1713 return createSimpleTargetReduction(B, TTI, Instruction::ICmp, Src, Flags); in createTargetReduction()
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp75 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand);
150 void SimplifyIndvar::eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand) { in eliminateIVComparison() argument
152 ICmpInst::Predicate Pred = ICmp->getPredicate(); in eliminateIVComparison()
153 if (IVOperand != ICmp->getOperand(0)) { in eliminateIVComparison()
155 assert(IVOperand == ICmp->getOperand(1) && "Can't find IVOperand"); in eliminateIVComparison()
161 const SCEV *S = SE->getSCEV(ICmp->getOperand(IVOperIdx)); in eliminateIVComparison()
162 const SCEV *X = SE->getSCEV(ICmp->getOperand(1 - IVOperIdx)); in eliminateIVComparison()
165 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in eliminateIVComparison()
175 ICmp->replaceAllUsesWith(ConstantInt::getTrue(ICmp->getContext())); in eliminateIVComparison()
176 DeadInsts.emplace_back(ICmp); in eliminateIVComparison()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DSimplifyIndVar.cpp79 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand);
153 void SimplifyIndvar::eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand) { in eliminateIVComparison() argument
155 ICmpInst::Predicate Pred = ICmp->getPredicate(); in eliminateIVComparison()
156 if (IVOperand != ICmp->getOperand(0)) { in eliminateIVComparison()
158 assert(IVOperand == ICmp->getOperand(1) && "Can't find IVOperand"); in eliminateIVComparison()
164 const SCEV *S = SE->getSCEV(ICmp->getOperand(IVOperIdx)); in eliminateIVComparison()
165 const SCEV *X = SE->getSCEV(ICmp->getOperand(1 - IVOperIdx)); in eliminateIVComparison()
168 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in eliminateIVComparison()
175 ICmp->replaceAllUsesWith(ConstantInt::getTrue(ICmp->getContext())); in eliminateIVComparison()
177 ICmp->replaceAllUsesWith(ConstantInt::getFalse(ICmp->getContext())); in eliminateIVComparison()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Vectorize/
DVPlanHCFGTest.cpp85 VPInstruction *ICmp = dyn_cast<VPInstruction>(&*Iter++); in TEST_F() local
86 EXPECT_EQ(Instruction::ICmp, ICmp->getOpcode()); in TEST_F()
87 EXPECT_EQ(2u, ICmp->getNumOperands()); in TEST_F()
88 EXPECT_EQ(IndvarAdd, ICmp->getOperand(0)); in TEST_F()
89 EXPECT_EQ(VecBB->getCondBit(), ICmp); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/
DOperations.cpp34 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_EQ)); in describeFuzzerIntOps()
35 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_NE)); in describeFuzzerIntOps()
36 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_UGT)); in describeFuzzerIntOps()
37 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_UGE)); in describeFuzzerIntOps()
38 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_ULT)); in describeFuzzerIntOps()
39 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_ULE)); in describeFuzzerIntOps()
40 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_SGT)); in describeFuzzerIntOps()
41 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_SGE)); in describeFuzzerIntOps()
42 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_SLT)); in describeFuzzerIntOps()
43 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_SLE)); in describeFuzzerIntOps()
[all …]
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyFastISel.cpp366 if (const ICmpInst *ICmp = dyn_cast<ICmpInst>(V)) in getRegForI1Value() local
367 if (const ConstantInt *C = dyn_cast<ConstantInt>(ICmp->getOperand(1))) in getRegForI1Value()
368 if (ICmp->isEquality() && C->isZero() && C->getType()->isIntegerTy(32)) { in getRegForI1Value()
369 Not = ICmp->isTrueWhenEqual(); in getRegForI1Value()
370 return getRegForValue(ICmp->getOperand(0)); in getRegForI1Value()
819 const ICmpInst *ICmp = cast<ICmpInst>(I); in selectICmp() local
821 bool I32 = getSimpleType(ICmp->getOperand(0)->getType()) != MVT::i64; in selectICmp()
824 switch (ICmp->getPredicate()) { in selectICmp()
862 unsigned LHS = getRegForPromotedValue(ICmp->getOperand(0), isSigned); in selectICmp()
866 unsigned RHS = getRegForPromotedValue(ICmp->getOperand(1), isSigned); in selectICmp()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFastISel.cpp415 if (const ICmpInst *ICmp = dyn_cast<ICmpInst>(V)) in getRegForI1Value() local
416 if (const ConstantInt *C = dyn_cast<ConstantInt>(ICmp->getOperand(1))) in getRegForI1Value()
417 if (ICmp->isEquality() && C->isZero() && C->getType()->isIntegerTy(32)) { in getRegForI1Value()
418 Not = ICmp->isTrueWhenEqual(); in getRegForI1Value()
419 return getRegForValue(ICmp->getOperand(0)); in getRegForI1Value()
966 const ICmpInst *ICmp = cast<ICmpInst>(I); in selectICmp() local
968 bool I32 = getSimpleType(ICmp->getOperand(0)->getType()) != MVT::i64; in selectICmp()
971 switch (ICmp->getPredicate()) { in selectICmp()
1009 unsigned LHS = getRegForPromotedValue(ICmp->getOperand(0), isSigned); in selectICmp()
1013 unsigned RHS = getRegForPromotedValue(ICmp->getOperand(1), isSigned); in selectICmp()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp77 EXPECT_TRUE(BB->front().getOpcode() == Instruction::ICmp); in TEST()
137 EXPECT_TRUE(BB->front().getOpcode() == Instruction::ICmp); in TEST()
198 EXPECT_TRUE(BB->front().getOpcode() == Instruction::ICmp); in TEST()
258 EXPECT_TRUE(BB->front().getOpcode() == Instruction::ICmp); in TEST()
/external/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp77 EXPECT_TRUE(BB->front().getOpcode() == Instruction::ICmp); in TEST()
137 EXPECT_TRUE(BB->front().getOpcode() == Instruction::ICmp); in TEST()
198 EXPECT_TRUE(BB->front().getOpcode() == Instruction::ICmp); in TEST()
258 EXPECT_TRUE(BB->front().getOpcode() == Instruction::ICmp); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZTDC.cpp321 else if (I.getOpcode() == Instruction::ICmp) in runOnFunction()
364 Value *ICmp = IRB.CreateICmp(CmpInst::ICMP_NE, TDC, Zero32); in runOnFunction() local
365 I->replaceAllUsesWith(ICmp); in runOnFunction()
DSystemZTargetTransformInfo.cpp99 case Instruction::ICmp: in getIntImmCost()
736 if (Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) { in getCmpSelInstrCost()
783 case Instruction::ICmp: { in getCmpSelInstrCost()
830 case Instruction::ICmp: in getMemoryOpCost()
/external/llvm/lib/Target/SystemZ/
DSystemZTDC.cpp321 else if (I.getOpcode() == Instruction::ICmp) in runOnFunction()
364 Value *ICmp = IRB.CreateICmp(CmpInst::ICMP_NE, TDC, Zero32); in runOnFunction() local
365 I->replaceAllUsesWith(ICmp); in runOnFunction()
DSystemZTargetTransformInfo.cpp99 case Instruction::ICmp: in getIntImmCost()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2375 Instruction *InstCombiner::visitICmpInstWithCastAndCast(ICmpInst &ICmp) { in visitICmpInstWithCastAndCast() argument
2376 const CastInst *LHSCI = cast<CastInst>(ICmp.getOperand(0)); in visitICmpInstWithCastAndCast()
2387 if (auto *RHSC = dyn_cast<PtrToIntOperator>(ICmp.getOperand(1))) { in visitICmpInstWithCastAndCast()
2396 } else if (auto *RHSC = dyn_cast<Constant>(ICmp.getOperand(1))) { in visitICmpInstWithCastAndCast()
2401 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, RHSOp); in visitICmpInstWithCastAndCast()
2411 bool isSignedCmp = ICmp.isSigned(); in visitICmpInstWithCastAndCast()
2413 if (auto *CI = dyn_cast<CastInst>(ICmp.getOperand(1))) { in visitICmpInstWithCastAndCast()
2425 if (ICmp.isEquality()) in visitICmpInstWithCastAndCast()
2426 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, RHSCIOp); in visitICmpInstWithCastAndCast()
2431 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, RHSCIOp); in visitICmpInstWithCastAndCast()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DCaptureTracking.cpp128 case Instruction::ICmp: in PointerMayBeCaptured()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp3619 Instruction *InstCombiner::foldICmpWithCastAndCast(ICmpInst &ICmp) { in foldICmpWithCastAndCast() argument
3620 const CastInst *LHSCI = cast<CastInst>(ICmp.getOperand(0)); in foldICmpWithCastAndCast()
3638 if (auto *RHSC = dyn_cast<PtrToIntOperator>(ICmp.getOperand(1))) { in foldICmpWithCastAndCast()
3647 } else if (auto *RHSC = dyn_cast<Constant>(ICmp.getOperand(1))) { in foldICmpWithCastAndCast()
3652 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, RHSOp); in foldICmpWithCastAndCast()
3662 bool isSignedCmp = ICmp.isSigned(); in foldICmpWithCastAndCast()
3664 if (auto *CI = dyn_cast<CastInst>(ICmp.getOperand(1))) { in foldICmpWithCastAndCast()
3676 if (ICmp.isEquality()) in foldICmpWithCastAndCast()
3677 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, RHSCIOp); in foldICmpWithCastAndCast()
3682 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, RHSCIOp); in foldICmpWithCastAndCast()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMCodeGenPrepare.cpp502 if (auto *ICmp = dyn_cast<ICmpInst>(V)) in isSupportedValue() local
503 return ICmp->isEquality() || !ICmp->isSigned(); in isSupportedValue()
/external/llvm/lib/IR/
DConstantsContext.h275 return CE->getOpcode() == Instruction::ICmp || in classof()
531 case Instruction::ICmp:
532 return new CompareConstantExpr(Ty, Instruction::ICmp, SubclassData,
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp582 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in collectUsesWithPtrTypes() local
583 if (!binaryOpIsDerivedFromSameAlloca(BaseAlloca, Val, ICmp, 0, 1)) in collectUsesWithPtrTypes()
587 WorkList.push_back(ICmp); in collectUsesWithPtrTypes()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantsContext.h288 return CE->getOpcode() == Instruction::ICmp || in classof()
557 case Instruction::ICmp:
558 return new CompareConstantExpr(Ty, Instruction::ICmp, SubclassData,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DExpandReductions.cpp51 return Instruction::ICmp; in getOpcode()
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/
DMBlazeISelLowering.h79 ICmp, enumerator
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp1709 case Instruction::ICmp: in buildTree_rec()
2213 case Instruction::ICmp: in getEntryCost()
3204 case Instruction::ICmp: { in vectorizeTree()
5132 ((Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) && in isVectorizable()
5134 (Opcode == Instruction::ICmp && in isVectorizable()
5148 Cmp = Opcode == Instruction::ICmp ? Builder.CreateICmpSLT(LHS, RHS) in createOp()
5152 Cmp = Opcode == Instruction::ICmp ? Builder.CreateICmpSGT(LHS, RHS) in createOp()
5156 assert(Opcode == Instruction::ICmp && "Expected integer types."); in createOp()
5160 assert(Opcode == Instruction::ICmp && "Expected integer types."); in createOp()
5314 return Opcode == Instruction::ICmp || in isAssociative()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp545 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in collectUsesWithPtrTypes() local
546 if (!binaryOpIsDerivedFromSameAlloca(BaseAlloca, Val, ICmp, 0, 1)) in collectUsesWithPtrTypes()
550 WorkList.push_back(ICmp); in collectUsesWithPtrTypes()

1234567