Home
last modified time | relevance | path

Searched refs:NewPred (Results 1 – 16 of 16) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp269 CmpInst::Predicate NewPred = CmpInst::BAD_ICMP_PREDICATE; in handleFloatingPointIV() local
273 case CmpInst::FCMP_UEQ: NewPred = CmpInst::ICMP_EQ; break; in handleFloatingPointIV()
275 case CmpInst::FCMP_UNE: NewPred = CmpInst::ICMP_NE; break; in handleFloatingPointIV()
277 case CmpInst::FCMP_UGT: NewPred = CmpInst::ICMP_SGT; break; in handleFloatingPointIV()
279 case CmpInst::FCMP_UGE: NewPred = CmpInst::ICMP_SGE; break; in handleFloatingPointIV()
281 case CmpInst::FCMP_ULT: NewPred = CmpInst::ICMP_SLT; break; in handleFloatingPointIV()
283 case CmpInst::FCMP_ULE: NewPred = CmpInst::ICMP_SLE; break; in handleFloatingPointIV()
310 if (NewPred == CmpInst::ICMP_SLE || NewPred == CmpInst::ICMP_SGT) { in handleFloatingPointIV()
319 if ((NewPred == CmpInst::ICMP_EQ || NewPred == CmpInst::ICMP_NE) && in handleFloatingPointIV()
336 if (NewPred == CmpInst::ICMP_SGE || NewPred == CmpInst::ICMP_SLT) { in handleFloatingPointIV()
[all …]
H A DLICM.cpp1612 BasicBlock *NewPred = SplitBlockPredecessors( in splitPredecessorsOfLoopExit() local
1621 SafetyInfo->copyColors(NewPred, PredBB); in splitPredecessorsOfLoopExit()
H A DJumpThreading.cpp1870 BasicBlock *NewPred, in addPHINodeEntriesForMappedBlock() argument
1884 PN.addIncoming(IV, NewPred); in addPHINodeEntriesForMappedBlock()
H A DGVN.cpp1714 BasicBlock *NewPred = splitCriticalEdges(OrigPred, LoadBB); in PerformLoadPRE() local
1716 PredLoads[NewPred] = nullptr; in PerformLoadPRE()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1443 auto NewPred = (Pred == Cmp.ICMP_EQ) ? Cmp.ICMP_UGE : Cmp.ICMP_ULT; in foldICmpTruncConstant() local
1444 return new ICmpInst(NewPred, Y, ConstantInt::get(SrcTy, DstBits)); in foldICmpTruncConstant()
1769 auto NewPred = isICMP_NE ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_SGE; in foldICmpAndConstConst() local
1770 return new ICmpInst(NewPred, X, Zero); in foldICmpAndConstConst()
1783 auto NewPred = isICMP_NE ? ICmpInst::ICMP_UGE : ICmpInst::ICMP_ULT; in foldICmpAndConstConst() local
1784 return new ICmpInst(NewPred, X, NegBOC); in foldICmpAndConstConst()
1887 auto NewPred = TrueIfNeg ? CmpInst::ICMP_EQ : CmpInst::ICMP_NE; in foldICmpAndConstant() local
1888 return new ICmpInst(NewPred, X, ConstantInt::getNullValue(X->getType())); in foldICmpAndConstant()
1896 auto NewPred = TrueIfNeg ? CmpInst::ICMP_EQ : CmpInst::ICMP_NE; in foldICmpAndConstant() local
1897 return new ICmpInst(NewPred, X, MinSignedC); in foldICmpAndConstant()
[all …]
H A DInstCombineAndOrXor.cpp33 ICmpInst::Predicate NewPred; in getNewICmpValue() local
34 if (Constant *TorF = getPredForICmpCode(Code, Sign, LHS->getType(), NewPred)) in getNewICmpValue()
36 return Builder.CreateICmp(NewPred, LHS, RHS); in getNewICmpValue()
43 FCmpInst::Predicate NewPred; in getFCmpValue() local
44 if (Constant *TorF = getPredForFCmpCode(Code, LHS->getType(), NewPred)) in getFCmpValue()
46 return Builder.CreateFCmp(NewPred, LHS, RHS); in getFCmpValue()
686 ICmpInst::Predicate NewPred; in simplifyRangeCheck() local
688 case ICmpInst::ICMP_SLT: NewPred = ICmpInst::ICMP_ULT; break; in simplifyRangeCheck()
689 case ICmpInst::ICMP_SLE: NewPred = ICmpInst::ICMP_ULE; break; in simplifyRangeCheck()
699 NewPred = ICmpInst::getInversePredicate(NewPred); in simplifyRangeCheck()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopIdiomVectorize.cpp445 Value *NewPred = in createMaskedFindMismatch() local
448 LoopPred->addIncoming(NewPred, VectorLoopIncBlock); in createMaskedFindMismatch()
451 Builder.CreateExtractElement(NewPred, uint64_t(0)); in createMaskedFindMismatch()
H A DVPlan.cpp699 for (const auto &[OldPred, NewPred] : in cloneFrom()
701 assert(NewPred == Old2NewVPBlocks[OldPred] && "Different predecessors"); in cloneFrom()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DBasicBlockUtils.h259 /// Replaces all uses of OldPred with the NewPred block in all PHINodes in a
262 BasicBlock *NewPred, PHINode *Until = nullptr);
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DIRTranslator.h755 void addMachineCFGPred(CFGEdge Edge, MachineBasicBlock *NewPred);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp7097 CmpInst::Predicate NewPred; in tryFoldAndOrOrICmpsUsingRanges() local
7099 CR->getEquivalentICmp(NewPred, NewC, Offset); in tryFoldAndOrOrICmpsUsingRanges()
7115 auto ICmp = B.buildICmp(NewPred, CmpTy, Add, NewCon); in tryFoldAndOrOrICmpsUsingRanges()
7121 auto ICmp = B.buildICmp(NewPred, CmpTy, And, NewCon); in tryFoldAndOrOrICmpsUsingRanges()
7127 auto ICmp = B.buildICmp(NewPred, CmpTy, Add, NewCon); in tryFoldAndOrOrICmpsUsingRanges()
7131 auto ICmp = B.buildICmp(NewPred, CmpTy, R1, NewCon); in tryFoldAndOrOrICmpsUsingRanges()
7188 unsigned NewPred = IsAnd ? CmpCodeL & CmpCodeR : CmpCodeL | CmpCodeR; in tryFoldLogicOfFCmps() local
7192 FCmpInst::Predicate Pred = static_cast<FCmpInst::Predicate>(NewPred); in tryFoldLogicOfFCmps()
H A DIRTranslator.cpp295 void IRTranslator::addMachineCFGPred(CFGEdge Edge, MachineBasicBlock *NewPred) { in addMachineCFGPred() argument
296 assert(NewPred && "new predecessor must be a real MachineBasicBlock"); in addMachineCFGPred()
297 MachinePreds[Edge].push_back(NewPred); in addMachineCFGPred()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBasicBlockUtils.cpp811 BasicBlock *NewPred, PHINode *Until) { in updatePhiNodes() argument
828 PN.setIncomingBlock(BBIdx, NewPred); in updatePhiNodes()
H A DSimplifyCFG.cpp373 static void AddPredecessorToBlock(BasicBlock *Succ, BasicBlock *NewPred, in AddPredecessorToBlock() argument
377 PN.addIncoming(PN.getIncomingValueForBlock(ExistPred), NewPred); in AddPredecessorToBlock()
380 MPhi->addIncoming(MPhi->getIncomingValueForBlock(ExistPred), NewPred); in AddPredecessorToBlock()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMachineCFGStructurizer.cpp295 MachineBasicBlock *NewPred) { in setPhiPred() argument
296 PHI.getOperand(Index * 2 + 2).setMBB(NewPred); in setPhiPred()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp10719 CmpInst::Predicate NewPred; in SimplifyICmpOperands() local
10720 if (ExactCR.getEquivalentICmp(NewPred, NewRHS) && in SimplifyICmpOperands()
10721 ICmpInst::isEquality(NewPred)) { in SimplifyICmpOperands()
10723 Pred = NewPred; in SimplifyICmpOperands()