Searched refs:CmpI (Results 1 - 19 of 19) sorted by relevance

/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp287 ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition()); local
290 if (!CmpI) {
294 Predicate = CmpI->getPredicate();
298 CmpConstOperand = dyn_cast<ConstantInt>(CmpI->getOperand(1));
301 CI = dyn_cast<CallInst>(CmpI->getOperand(0));
343 if (CmpI)
344 CmpI->setOperand(0, ArgValue);
H A DMergeICmps.cpp188 const ICmpInst *CmpI; member in struct:__anon2951::BCECmp
190 BCECmp(BCEAtom L, BCEAtom R, int SizeBits, const ICmpInst *CmpI) argument
191 : Lhs(std::move(L)), Rhs(std::move(R)), SizeBits(SizeBits), CmpI(CmpI) {
305 std::optional<BCECmp> visitICmp(const ICmpInst *const CmpI, argument
313 if (!CmpI->hasOneUse()) {
317 if (CmpI->getPredicate() != ExpectedPredicate)
322 auto Lhs = visitICmpLoadOperand(CmpI->getOperand(0), BaseId);
325 auto Rhs = visitICmpLoadOperand(CmpI->getOperand(1), BaseId);
328 const auto &DL = CmpI
369 auto *CmpI = dyn_cast<ICmpInst>(Cond); local
[all...]
H A DConstraintElimination.cpp1146 auto *CmpI = dyn_cast<ICmpInst>(Br->getCondition()); local
1147 if (!CmpI)
1151 DT.getNode(Br->getSuccessor(0)), CmpI->getPredicate(),
1152 CmpI->getOperand(0), CmpI->getOperand(1)));
1156 CmpInst::getInversePredicate(CmpI->getPredicate()), CmpI->getOperand(0),
1157 CmpI->getOperand(1)));
H A DGVN.cpp2079 if (auto *CmpI = dyn_cast<CmpInst>(V)) {
2080 if (impliesEquivalanceIfTrue(CmpI)) {
2081 Value *CmpLHS = CmpI->getOperand(0);
2082 Value *CmpRHS = CmpI->getOperand(1);
/freebsd-current/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonHardwareLoops.cpp233 bool orderBumpCompare(MachineInstr *BumpI, MachineInstr *CmpI);
1319 MachineInstr *CmpI) {
1320 assert (BumpI != CmpI && "Bump and compare in the same instruction?");
1323 if (CmpI->getParent() != BB)
1330 if (&*I == CmpI)
1334 Register PredR = CmpI->getOperand(0).getReg();
1336 instr_iterator CmpIt = CmpI->getIterator(), NextIt = std::next(CmpIt);
1348 BB->splice(++BumpI->getIterator(), BB, CmpI->getIterator());
1318 orderBumpCompare(MachineInstr *BumpI, MachineInstr *CmpI) argument
H A DHexagonSplitDouble.cpp506 const MachineInstr *CmpI = MRI->getVRegDef(PR); local
507 while (CmpI->getOpcode() == Hexagon::C2_not)
508 CmpI = MRI->getVRegDef(CmpI->getOperand(1).getReg());
511 bool OkCI = TII->analyzeCompare(*CmpI, CmpR1, CmpR2, Mask, Val);
/freebsd-current/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiInstrInfo.cpp205 inline static bool isRedundantFlagInstr(MachineInstr *CmpI, unsigned SrcReg, argument
208 if (CmpI->getOpcode() == Lanai::SFSUB_F_RR &&
216 if (((CmpI->getOpcode() == Lanai::SFSUB_F_RI_LO &&
218 (CmpI->getOpcode() == Lanai::SFSUB_F_RI_HI &&
/freebsd-current/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMInstructionSelector.cpp579 auto CmpI = local
584 if (!constrainSelectedInstRegOperands(*CmpI, TII, TRI, RBI))
777 auto CmpI = BuildMI(MBB, InsertBefore, DbgLoc, TII.get(Opcodes.TSTri)) local
781 if (!constrainSelectedInstRegOperands(*CmpI, TII, TRI, RBI))
H A DARMBaseInstrInfo.cpp2858 inline static bool isRedundantFlagInstr(const MachineInstr *CmpI, argument
2863 if ((CmpI->getOpcode() == ARM::CMPrr || CmpI->getOpcode() == ARM::t2CMPrr) &&
2873 if (CmpI->getOpcode() == ARM::tCMPr && OI->getOpcode() == ARM::tSUBrr &&
2882 if ((CmpI->getOpcode() == ARM::CMPri || CmpI->getOpcode() == ARM::t2CMPri) &&
2890 if (CmpI->getOpcode() == ARM::tCMPi8 &&
2898 if ((CmpI->getOpcode() == ARM::CMPrr || CmpI->getOpcode() == ARM::t2CMPrr) &&
2908 if (CmpI
[all...]
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h2835 Instruction *CmpI = &Cond->front(); local
2836 assert(isa<CmpInst>(CmpI) && "First inst must compare IV with TripCount");
2837 return CmpI->getOperand(1);
/freebsd-current/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp7851 static Value *lookThroughCast(CmpInst *CmpI, Value *V1, Value *V2,
7870 const DataLayout &DL = CmpI->getModule()->getDataLayout();
7874 if (CmpI->isUnsigned())
7878 if (CmpI->isSigned())
7883 if (match(CmpI->getOperand(1), m_Constant(CmpConst)) &&
7908 unsigned ExtOp = CmpI->isSigned() ? Instruction::SExt : Instruction::ZExt;
7955 CmpInst *CmpI = dyn_cast<CmpInst>(SI->getCondition());
7956 if (!CmpI) return {SPF_UNKNOWN, SPNB_NA, false};
7961 return llvm::matchDecomposedSelectPattern(CmpI, TrueVal, FalseVal, LHS, RHS,
7966 CmpInst *CmpI, Valu
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp447 if (const auto *CmpI = dyn_cast<FCmpInst>(&OldInst)) {
448 FCmpInst::Predicate Pred = CmpI->getPredicate();
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp8313 Instruction *CmpI = nullptr; local
8315 CmpI = II;
8317 CmpI = F->getFastMathFlags().none() ? F : nullptr;
8319 if (CmpI && CmpI->hasOneUse()) {
8320 auto Op0 = CmpI->getOperand(0), Op1 = CmpI->getOperand(1);
8327 auto *F = new FreezeInst(Const0 ? Op1 : Op0, "", CmpI);
8329 CmpI->setOperand(Const0 ? 1 : 0, F);
8331 replaceAllUsesWith(FI, CmpI, FreshBB
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp1804 if (auto *CmpI = dyn_cast<CmpInst>(LoadU.getUser())) {
1805 if (!CmpI->isEquality() || !CmpI->isTrueWhenEqual())
1807 for (const Use &CmpU : CmpI->uses()) {
1811 int Idx = CmpI->getOperandUse(0) == LoadU;
1812 Assumption = {CmpI->getOperand(Idx), IntrI};
9345 calculateCmpInst(Attributor &A, CmpInst *CmpI, IntegerRangeState &T,
9348 Value *LHS = CmpI->getOperand(0);
9349 Value *RHS = CmpI->getOperand(1);
9397 ConstantRange::makeAllowedICmpRegion(CmpI
[all...]
H A DOpenMPOpt.cpp4579 Instruction *CmpI = ICmpInst::Create( local
4582 CmpI->setDebugLoc(DLoc);
4583 IsPR = CmpI;
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueTracking.h1091 CmpInst *CmpI, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS,
/freebsd-current/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp7066 Instruction *CmpI = &getCond()->front(); local
7067 assert(isa<CmpInst>(CmpI) && "First inst must compare IV with TripCount");
7068 CmpI->setOperand(1, TripCount);
7192 auto *CmpI = cast<CmpInst>(&Cond->front()); local
7193 assert(CmpI->getPredicate() == CmpInst::ICMP_ULT &&
7195 assert(CmpI->getOperand(0) == IndVar &&
7197 assert(CmpI->getOperand(1) == TripCount &&
/freebsd-current/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp3724 llvm::Value *CmpI = CGF.Builder.CreateICmpUGE(NMin1, Pow2K);
3725 CGF.Builder.CreateCondBr(CmpI, InnerLoopBB, InnerExitBB);
3768 CmpI = CGF.Builder.CreateICmpUGE(NextIVal, Pow2K);
3769 CGF.Builder.CreateCondBr(CmpI, InnerLoopBB, InnerExitBB);
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp8087 if (const auto *CmpI = dyn_cast<VPCmpIntrinsic>(&VPIntrin))
8088 return visitVPCmp(*CmpI);

Completed in 776 milliseconds