Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp267 CmpInst::Predicate NewPred = CmpInst::BAD_ICMP_PREDICATE; in handleFloatingPointIV() local
271 case CmpInst::FCMP_UEQ: NewPred = CmpInst::ICMP_EQ; break; in handleFloatingPointIV()
273 case CmpInst::FCMP_UNE: NewPred = CmpInst::ICMP_NE; break; in handleFloatingPointIV()
275 case CmpInst::FCMP_UGT: NewPred = CmpInst::ICMP_SGT; break; in handleFloatingPointIV()
277 case CmpInst::FCMP_UGE: NewPred = CmpInst::ICMP_SGE; break; in handleFloatingPointIV()
279 case CmpInst::FCMP_ULT: NewPred = CmpInst::ICMP_SLT; break; in handleFloatingPointIV()
281 case CmpInst::FCMP_ULE: NewPred = CmpInst::ICMP_SLE; break; in handleFloatingPointIV()
308 if (NewPred == CmpInst::ICMP_SLE || NewPred == CmpInst::ICMP_SGT) { in handleFloatingPointIV()
317 if ((NewPred == CmpInst::ICMP_EQ || NewPred == CmpInst::ICMP_NE) && in handleFloatingPointIV()
334 if (NewPred == CmpInst::ICMP_SGE || NewPred == CmpInst::ICMP_SLT) { in handleFloatingPointIV()
[all …]
H A DLICM.cpp1542 BasicBlock *NewPred = SplitBlockPredecessors( in splitPredecessorsOfLoopExit() local
1551 SafetyInfo->copyColors(NewPred, PredBB); in splitPredecessorsOfLoopExit()
H A DJumpThreading.cpp1880 BasicBlock *NewPred, in addPHINodeEntriesForMappedBlock() argument
1894 PN.addIncoming(IV, NewPred); in addPHINodeEntriesForMappedBlock()
H A DGVN.cpp1808 BasicBlock *NewPred = splitCriticalEdges(OrigPred, LoadBB); in PerformLoadPRE() local
1810 PredLoads[NewPred] = nullptr; in PerformLoadPRE()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1479 auto NewPred = (Pred == Cmp.ICMP_EQ) ? Cmp.ICMP_UGE : Cmp.ICMP_ULT; in foldICmpTruncConstant() local
1480 return new ICmpInst(NewPred, Y, ConstantInt::get(SrcTy, DstBits)); in foldICmpTruncConstant()
1817 auto NewPred = isICMP_NE ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_SGE; in foldICmpAndConstConst() local
1818 return new ICmpInst(NewPred, X, Zero); in foldICmpAndConstConst()
1831 auto NewPred = isICMP_NE ? ICmpInst::ICMP_UGE : ICmpInst::ICMP_ULT; in foldICmpAndConstConst() local
1832 return new ICmpInst(NewPred, X, NegBOC); in foldICmpAndConstConst()
1941 auto NewPred = TrueIfNeg ? CmpInst::ICMP_EQ : CmpInst::ICMP_NE; in foldICmpAndConstant() local
1942 return new ICmpInst(NewPred, X, ConstantInt::getNullValue(X->getType())); in foldICmpAndConstant()
1950 auto NewPred = TrueIfNeg ? CmpInst::ICMP_EQ : CmpInst::ICMP_NE; in foldICmpAndConstant() local
1951 return new ICmpInst(NewPred, X, MinSignedC); in foldICmpAndConstant()
[all …]
H A DInstCombineAndOrXor.cpp34 ICmpInst::Predicate NewPred; in getNewICmpValue() local
35 if (Constant *TorF = getPredForICmpCode(Code, Sign, LHS->getType(), NewPred)) in getNewICmpValue()
37 return Builder.CreateICmp(NewPred, LHS, RHS); in getNewICmpValue()
44 FCmpInst::Predicate NewPred; in getFCmpValue() local
45 if (Constant *TorF = getPredForFCmpCode(Code, LHS->getType(), NewPred)) in getFCmpValue()
47 return Builder.CreateFCmpFMF(NewPred, LHS, RHS, FMF); in getFCmpValue()
754 ICmpInst::Predicate NewPred; in simplifyRangeCheck() local
756 case ICmpInst::ICMP_SLT: NewPred = ICmpInst::ICMP_ULT; break; in simplifyRangeCheck()
757 case ICmpInst::ICMP_SLE: NewPred = ICmpInst::ICMP_ULE; break; in simplifyRangeCheck()
767 NewPred = ICmpInst::getInversePredicate(NewPred); in simplifyRangeCheck()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1775 for (auto *NewPred : NewPreds) { in handleLongjmpableCallsForWasmSjLj() local
1776 assert(PN.getBasicBlockIndex(NewPred) == -1); in handleLongjmpableCallsForWasmSjLj()
1777 PN.addIncoming(PoisonValue::get(PN.getType()), NewPred); in handleLongjmpableCallsForWasmSjLj()
1802 for (auto *NewPred : NewPreds) in handleLongjmpableCallsForWasmSjLj() local
1803 PN.setIncomingValueForBlock(NewPred, SSA.GetValueAtEndOfBlock(NewPred)); in handleLongjmpableCallsForWasmSjLj()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopIdiomVectorize.cpp494 Value *NewPred = in createMaskedFindMismatch() local
497 LoopPred->addIncoming(NewPred, VectorLoopIncBlock); in createMaskedFindMismatch()
500 Builder.CreateExtractElement(NewPred, uint64_t(0)); in createMaskedFindMismatch()
H A DVPlan.cpp772 for (const auto &[OldPred, NewPred] : in cloneFrom()
774 assert(NewPred == Old2NewVPBlocks[OldPred] && "Different predecessors"); in cloneFrom()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DBasicBlockUtils.h270 BasicBlock *NewPred, PHINode *Until = nullptr);
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DIRTranslator.h752 void addMachineCFGPred(CFGEdge Edge, MachineBasicBlock *NewPred);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBasicBlockUtils.cpp671 BasicBlock *NewPred, PHINode *Until) { in updatePhiNodes() argument
688 PN.setIncomingBlock(BBIdx, NewPred); in updatePhiNodes()
H A DSimplifyCFG.cpp392 static void addPredecessorToBlock(BasicBlock *Succ, BasicBlock *NewPred, in addPredecessorToBlock() argument
396 PN.addIncoming(PN.getIncomingValueForBlock(ExistPred), NewPred); in addPredecessorToBlock()
399 MPhi->addIncoming(MPhi->getIncomingValueForBlock(ExistPred), NewPred); in addPredecessorToBlock()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp7434 CmpInst::Predicate NewPred; in tryFoldAndOrOrICmpsUsingRanges() local
7436 CR->getEquivalentICmp(NewPred, NewC, Offset); in tryFoldAndOrOrICmpsUsingRanges()
7452 auto ICmp = B.buildICmp(NewPred, CmpTy, Add, NewCon); in tryFoldAndOrOrICmpsUsingRanges()
7458 auto ICmp = B.buildICmp(NewPred, CmpTy, And, NewCon); in tryFoldAndOrOrICmpsUsingRanges()
7464 auto ICmp = B.buildICmp(NewPred, CmpTy, Add, NewCon); in tryFoldAndOrOrICmpsUsingRanges()
7468 auto ICmp = B.buildICmp(NewPred, CmpTy, R1, NewCon); in tryFoldAndOrOrICmpsUsingRanges()
7525 unsigned NewPred = IsAnd ? CmpCodeL & CmpCodeR : CmpCodeL | CmpCodeR; in tryFoldLogicOfFCmps() local
7529 FCmpInst::Predicate Pred = static_cast<FCmpInst::Predicate>(NewPred); in tryFoldLogicOfFCmps()
H A DIRTranslator.cpp293 void IRTranslator::addMachineCFGPred(CFGEdge Edge, MachineBasicBlock *NewPred) { in addMachineCFGPred() argument
294 assert(NewPred && "new predecessor must be a real MachineBasicBlock"); in addMachineCFGPred()
295 MachinePreds[Edge].push_back(NewPred); in addMachineCFGPred()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp1810 CmpInst::Predicate NewPred = in unfoldPowerOf2Test() local
1814 NewCmp = Builder.CreateICmp(NewPred, And, ConstantInt::getNullValue(OpTy)); in unfoldPowerOf2Test()
1821 CmpInst::Predicate NewPred = in unfoldPowerOf2Test() local
1823 NewCmp = Builder.CreateICmp(NewPred, Xor, Sub); in unfoldPowerOf2Test()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp10792 CmpInst::Predicate NewPred; in SimplifyICmpOperands() local
10793 if (ExactCR.getEquivalentICmp(NewPred, NewRHS) && in SimplifyICmpOperands()
10794 ICmpInst::isEquality(NewPred)) { in SimplifyICmpOperands()
10796 Pred = NewPred; in SimplifyICmpOperands()
H A DValueTracking.cpp8606 CmpInst::Predicate NewPred = CmpInst::getFlippedStrictnessPredicate(Pred); in getFlippedStrictnessPredicateAndConstant() local
8612 return std::make_pair(NewPred, NewC); in getFlippedStrictnessPredicateAndConstant()