Home
last modified time | relevance | path

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

123

/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp80 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand);
158 void SimplifyIndvar::eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand) { in eliminateIVComparison() argument
160 ICmpInst::Predicate Pred = ICmp->getPredicate(); in eliminateIVComparison()
161 if (IVOperand != ICmp->getOperand(0)) { in eliminateIVComparison()
163 assert(IVOperand == ICmp->getOperand(1) && "Can't find IVOperand"); in eliminateIVComparison()
169 const SCEV *S = SE->getSCEV(ICmp->getOperand(IVOperIdx)); in eliminateIVComparison()
170 const SCEV *X = SE->getSCEV(ICmp->getOperand(1 - IVOperIdx)); in eliminateIVComparison()
173 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in eliminateIVComparison()
180 ICmp->replaceAllUsesWith(ConstantInt::getTrue(ICmp->getContext())); in eliminateIVComparison()
182 ICmp->replaceAllUsesWith(ConstantInt::getFalse(ICmp->getContext())); in eliminateIVComparison()
[all …]
/minix3/external/bsd/llvm/dist/llvm/unittests/Transforms/Utils/
H A 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()
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/
H A DCaptureTracking.cpp247 case Instruction::ICmp: in PointerMayBeCaptured()
H A DScalarEvolutionExpander.cpp1545 Value *ICmp = Builder.CreateICmpSGT(LHS, RHS); in visitSMaxExpr() local
1546 rememberInstruction(ICmp); in visitSMaxExpr()
1547 Value *Sel = Builder.CreateSelect(ICmp, LHS, RHS, "smax"); in visitSMaxExpr()
1569 Value *ICmp = Builder.CreateICmpUGT(LHS, RHS); in visitUMaxExpr() local
1570 rememberInstruction(ICmp); in visitUMaxExpr()
1571 Value *Sel = Builder.CreateSelect(ICmp, LHS, RHS, "umax"); in visitUMaxExpr()
H A DCostModel.cpp425 case Instruction::ICmp: in getInstructionCost()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/ObjCARC/
H A DObjCARCUtil.cpp232 case Instruction::ICmp: in GetInstructionClass()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp307 case Instruction::ICmp: in runOnFunction()
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DConstantsContext.h502 case Instruction::ICmp:
503 return new CompareConstantExpr(Ty, Instruction::ICmp, SubclassData,
H A DInstruction.cpp239 case ICmp: return "icmp"; in getOpcodeName()
H A DConstants.cpp1146 return getOpcode() == Instruction::ICmp || getOpcode() == Instruction::FCmp; in isCompare()
1256 case Instruction::ICmp: in getWithOperands()
2056 const ConstantExprKeyType Key(Instruction::ICmp, ArgVec, pred); in getICmp()
2962 case Instruction::ICmp: in getAsInstruction()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp627 case Instruction::ICmp: in CanEvaluateShuffled()
706 case Instruction::ICmp: in BuildNew()
789 case Instruction::ICmp: in EvaluateInDifferentElementOrder()
H A DInstCombineCalls.cpp1073 if (ICmpInst* ICmp = dyn_cast<ICmpInst>(IIOperand)) { in visitCallInst() local
1074 Value *LHS = ICmp->getOperand(0); in visitCallInst()
1075 Value *RHS = ICmp->getOperand(1); in visitCallInst()
1076 if (ICmpInst::ICMP_NE == ICmp->getPredicate() && in visitCallInst()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DInstruction.def162 HANDLE_OTHER_INST(46, ICmp , ICmpInst ) // Integer comparison instruction
H A DInstructions.h1016 Instruction::ICmp, pred, LHS, RHS, NameStr,
1031 Instruction::ICmp, pred, LHS, RHS, NameStr,
1045 Instruction::ICmp, pred, LHS, RHS, NameStr) {
1119 return I->getOpcode() == Instruction::ICmp;
H A DInstrTypes.h867 return I->getOpcode() == Instruction::ICmp ||
/minix3/external/bsd/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp237 case Instruction::ICmp: in getIntImmCost()
/minix3/external/bsd/llvm/dist/llvm/test/Transforms/SimplifyCFG/
H A D2006-12-08-Ptr-ICmp-Branch.ll4 ; ModuleID = '2006-12-08-Ptr-ICmp-Branch.ll'
/minix3/external/bsd/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp315 case Instruction::ICmp: in remapConstantExpr()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp2257 CmpInst::Create(Instruction::ICmp, CmpInst::ICMP_EQ, BackedgeCount, in createEmptyLoop()
2573 Value *CmpN = CmpInst::Create(Instruction::ICmp, CmpInst::ICMP_EQ, IdxEnd, in createEmptyLoop()
2586 Value *ICmp = Builder.CreateICmpEQ(NextIdx, IdxEndRoundDown); in createEmptyLoop() local
2587 Builder.CreateCondBr(ICmp, MiddleBlock, VecBody); in createEmptyLoop()
2653 return Instruction::ICmp; in getReductionBinOp()
2915 if (Op != Instruction::ICmp && Op != Instruction::FCmp) in vectorizeLoop()
2948 if (Op != Instruction::ICmp && Op != Instruction::FCmp) in vectorizeLoop()
3322 case Instruction::ICmp: in vectorizeBlockInLoop()
5279 case Instruction::ICmp: in isReductionInstr()
6028 case Instruction::ICmp: in getInstructionCost()
H A DSLPVectorizer.cpp1251 case Instruction::ICmp: in buildTree_rec()
1532 case Instruction::ICmp: in getEntryCost()
1555 if (Opcode == Instruction::FCmp || Opcode == Instruction::ICmp || in getEntryCost()
2054 case Instruction::ICmp: { in vectorizeTree()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp222 case Instruction::ICmp: in getIntImmCost()
/minix3/external/bsd/llvm/dist/llvm/tools/llvm-diff/
H A DDifferenceEngine.cpp403 case Instruction::ICmp: in equivalentAsOperands()
/minix3/external/bsd/llvm/dist/llvm/lib/AsmParser/
H A DLLLexer.cpp699 INSTKEYWORD(icmp, ICmp); INSTKEYWORD(fcmp, FCmp); in LexIdentifier()
/minix3/external/bsd/llvm/dist/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp606 Value *V = CmpInst::Create(fp ? Instruction::FCmp : Instruction::ICmp, in Act()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/CppBackend/
H A DCPPBackend.cpp881 case Instruction::ICmp: in printConstant()
1285 case Instruction::ICmp: { in printInstruction()

123