Searched defs:ICI (Results 1 - 7 of 7) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp29 ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition());
30 if (ICI == 0) return SPF_UNKNOWN;
32 LHS = ICI->getOperand(0);
33 RHS = ICI->getOperand(1);
36 if (SI->getTrueValue() == ICI->getOperand(0) &&
37 SI->getFalseValue() == ICI->getOperand(1)) {
38 switch (ICI->getPredicate()) {
52 if (SI->getTrueValue() == ICI->getOperand(1) &&
53 SI->getFalseValue() == ICI->getOperand(0)) {
54 switch (ICI
343 visitSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI) argument
[all...]
H A DInstCombineAndOrXor.cpp89 static unsigned getICmpCode(const ICmpInst *ICI) { argument
90 switch (ICI->getPredicate()) {
H A DInstCombineCasts.cpp503 Instruction *InstCombiner::transformZExtICmp(ICmpInst *ICI, Instruction &CI, argument
508 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(ICI->getOperand(1))) {
513 if ((ICI->getPredicate() == ICmpInst::ICMP_SLT && Op1CV == 0) ||
514 (ICI->getPredicate() == ICmpInst::ICMP_SGT &&Op1CV.isAllOnesValue())) {
515 if (!DoXform) return ICI;
517 Value *In = ICI->getOperand(0);
524 if (ICI->getPredicate() == ICmpInst::ICMP_SGT) {
544 ICI->isEquality()) {
549 ComputeMaskedBits(ICI->getOperand(0), TypeMask, KnownZero, KnownOne);
553 if (!DoXform) return ICI;
890 transformSExtICmp(ICmpInst *ICI, Instruction &CI) argument
[all...]
H A DInstCombineCompares.cpp202 CmpInst &ICI, ConstantInt *AndCst) {
274 Constant *CompareRHS = cast<Constant>(ICI.getOperand(1));
286 Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt,
374 return ReplaceInstUsesWith(ICI, ConstantInt::getFalse(GEP->getContext()));
394 return ReplaceInstUsesWith(ICI, ConstantInt::getTrue(GEP->getContext()));
680 Instruction *InstCombiner::FoldICmpAddOpCst(ICmpInst &ICI, argument
688 return ReplaceInstUsesWith(ICI, ConstantInt::get(ICI.getType(), isTrue));
693 return ReplaceInstUsesWith(ICI, ConstantInt::getFalse(X->getContext()));
697 return ReplaceInstUsesWith(ICI, ConstantIn
201 FoldCmpLoadFromIndexedGlobal(GetElementPtrInst *GEP, GlobalVariable *GV, CmpInst &ICI, ConstantInt *AndCst) argument
745 FoldICmpDivCst(ICmpInst &ICI, BinaryOperator *DivI, ConstantInt *DivRHS) argument
902 FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *Shr, ConstantInt *ShAmt) argument
992 visitICmpInstWithInstAndIntCst(ICmpInst &ICI, Instruction *LHSI, ConstantInt *RHS) argument
1518 visitICmpInstWithCastAndCast(ICmpInst &ICI) argument
[all...]
/external/llvm/lib/Analysis/
H A DLazyValueInfo.cpp825 ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition()); local
826 if (ICI && ICI->getOperand(0) == Val &&
827 isa<Constant>(ICI->getOperand(1))) {
828 if (ICI->isEquality()) {
831 if (isTrueDest == (ICI->getPredicate() == ICmpInst::ICMP_EQ))
832 Result = LVILatticeVal::get(cast<Constant>(ICI->getOperand(1)));
834 Result = LVILatticeVal::getNot(cast<Constant>(ICI->getOperand(1)));
838 if (ConstantInt *CI = dyn_cast<ConstantInt>(ICI->getOperand(1))) {
842 ConstantRange::makeICmpRegion(ICI
[all...]
/external/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp922 ICmpInst *ICI = cast<ICmpInst>(LoadUse.getUser()); local
924 Value *LV = new LoadInst(InitBool, InitBool->getName()+".val", ICI);
926 switch (ICI->getPredicate()) {
935 LV = BinaryOperator::CreateNot(LV, "notinit", ICI);
944 ICI->replaceAllUsesWith(LV);
945 ICI->eraseFromParent();
1078 if (const ICmpInst *ICI = dyn_cast<ICmpInst>(User)) {
1079 if (!isa<ConstantPointerNull>(ICI->getOperand(1)))
/external/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp357 if (ICmpInst *ICI = dyn_cast<ICmpInst>(I)) {
359 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ:ICmpInst::ICMP_NE)) {
368 ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue());
461 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition()))
462 if ((ICI->getPredicate() == ICmpInst::ICMP_EQ ||
463 ICI->getPredicate() == ICmpInst::ICMP_NE) &&
464 GetConstantInt(ICI->getOperand(1), TD))
465 CV = ICI->getOperand(0);
488 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); local
489 Cases.push_back(std::make_pair(GetConstantInt(ICI
1941 TryToSimplifyUncondBranchWithICmpInIt(ICmpInst *ICI, const TargetData *TD, IRBuilder<> &Builder) argument
[all...]

Completed in 375 milliseconds