Home
last modified time | relevance | path

Searched refs:CmpI (Results 1 – 17 of 17) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DMergeICmps.cpp139 assert(CmpI); in AssertConsistent()
169 ICmpInst *CmpI = nullptr; member in __anonc0097c020111::BCECmpBlock
199 {Lhs_.GEP, Rhs_.GEP, Lhs_.LoadI, Rhs_.LoadI, CmpI, BranchI}); in split()
218 {Lhs_.GEP, Rhs_.GEP, Lhs_.LoadI, Rhs_.LoadI, CmpI, BranchI}); in canSplit()
232 {Lhs_.GEP, Rhs_.GEP, Lhs_.LoadI, Rhs_.LoadI, CmpI, BranchI}); in doesOtherWork()
246 BCECmpBlock visitICmp(const ICmpInst *const CmpI, in visitICmp() argument
253 if (!CmpI->hasOneUse()) { in visitICmp()
257 if (CmpI->getPredicate() == ExpectedPredicate) { in visitICmp()
261 auto Lhs = visitICmpLoadOperand(CmpI->getOperand(0)); in visitICmp()
263 auto Rhs = visitICmpLoadOperand(CmpI->getOperand(1)); in visitICmp()
[all …]
DLowerExpectIntrinsic.cpp246 ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition()); in handleBrSelExpect() local
249 if (!CmpI) { in handleBrSelExpect()
253 Predicate = CmpI->getPredicate(); in handleBrSelExpect()
257 CmpConstOperand = dyn_cast<ConstantInt>(CmpI->getOperand(1)); in handleBrSelExpect()
260 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBrSelExpect()
293 if (CmpI) in handleBrSelExpect()
294 CmpI->setOperand(0, ArgValue); in handleBrSelExpect()
DGVN.cpp1435 if (auto *CmpI = dyn_cast<CmpInst>(V)) { in processAssumeIntrinsic() local
1436 if (CmpI->getPredicate() == CmpInst::Predicate::ICMP_EQ || in processAssumeIntrinsic()
1437 CmpI->getPredicate() == CmpInst::Predicate::FCMP_OEQ || in processAssumeIntrinsic()
1438 (CmpI->getPredicate() == CmpInst::Predicate::FCMP_UEQ && in processAssumeIntrinsic()
1439 CmpI->getFastMathFlags().noNaNs())) { in processAssumeIntrinsic()
1440 Value *CmpLHS = CmpI->getOperand(0); in processAssumeIntrinsic()
1441 Value *CmpRHS = CmpI->getOperand(1); in processAssumeIntrinsic()
/external/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp101 ICmpInst *CmpI = dyn_cast<ICmpInst>(BI.getCondition()); in handleBranchExpect() local
102 if (!CmpI) { in handleBranchExpect()
105 if (CmpI->getPredicate() != CmpInst::ICMP_NE) in handleBranchExpect()
107 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBranchExpect()
134 if (CmpI) in handleBranchExpect()
135 CmpI->setOperand(0, ArgValue); in handleBranchExpect()
DGVN.cpp1720 if (auto *CmpI = dyn_cast<CmpInst>(V)) { in processAssumeIntrinsic() local
1721 if (CmpI->getPredicate() == CmpInst::Predicate::ICMP_EQ || in processAssumeIntrinsic()
1722 CmpI->getPredicate() == CmpInst::Predicate::FCMP_OEQ || in processAssumeIntrinsic()
1723 (CmpI->getPredicate() == CmpInst::Predicate::FCMP_UEQ && in processAssumeIntrinsic()
1724 CmpI->getFastMathFlags().noNaNs())) { in processAssumeIntrinsic()
1725 Value *CmpLHS = CmpI->getOperand(0); in processAssumeIntrinsic()
1726 Value *CmpRHS = CmpI->getOperand(1); in processAssumeIntrinsic()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLowerExpectIntrinsic.cpp90 ICmpInst *CmpI = dyn_cast<ICmpInst>(BI->getCondition()); in HandleIfExpect() local
91 if (!CmpI || CmpI->getPredicate() != CmpInst::ICMP_NE) in HandleIfExpect()
94 CallInst *CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in HandleIfExpect()
122 CmpI->setOperand(0, ArgValue); in HandleIfExpect()
/external/llvm/lib/Target/Lanai/
DLanaiInstrInfo.cpp207 inline static bool isRedundantFlagInstr(MachineInstr *CmpI, unsigned SrcReg, in isRedundantFlagInstr() argument
210 if (CmpI->getOpcode() == Lanai::SFSUB_F_RR && in isRedundantFlagInstr()
218 if (((CmpI->getOpcode() == Lanai::SFSUB_F_RI_LO && in isRedundantFlagInstr()
220 (CmpI->getOpcode() == Lanai::SFSUB_F_RI_HI && in isRedundantFlagInstr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/
DLanaiInstrInfo.cpp206 inline static bool isRedundantFlagInstr(MachineInstr *CmpI, unsigned SrcReg, in isRedundantFlagInstr() argument
209 if (CmpI->getOpcode() == Lanai::SFSUB_F_RR && in isRedundantFlagInstr()
217 if (((CmpI->getOpcode() == Lanai::SFSUB_F_RI_LO && in isRedundantFlagInstr()
219 (CmpI->getOpcode() == Lanai::SFSUB_F_RI_HI && in isRedundantFlagInstr()
/external/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp206 bool orderBumpCompare(MachineInstr *BumpI, MachineInstr *CmpI);
1284 MachineInstr *CmpI) { in orderBumpCompare() argument
1285 assert (BumpI != CmpI && "Bump and compare in the same instruction?"); in orderBumpCompare()
1288 if (CmpI->getParent() != BB) in orderBumpCompare()
1294 if (&*I == CmpI) in orderBumpCompare()
1298 unsigned PredR = CmpI->getOperand(0).getReg(); in orderBumpCompare()
1300 instr_iterator CmpIt = CmpI->getIterator(), NextIt = std::next(CmpIt); in orderBumpCompare()
1312 BB->splice(++BumpI->getIterator(), BB, CmpI->getIterator()); in orderBumpCompare()
DHexagonSplitDouble.cpp462 const MachineInstr *CmpI = MRI->getVRegDef(PR); in collectIndRegsForLoop() local
463 while (CmpI->getOpcode() == Hexagon::C2_not) in collectIndRegsForLoop()
464 CmpI = MRI->getVRegDef(CmpI->getOperand(1).getReg()); in collectIndRegsForLoop()
467 bool OkCI = TII->analyzeCompare(*CmpI, CmpR1, CmpR2, Mask, Val); in collectIndRegsForLoop()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp233 bool orderBumpCompare(MachineInstr *BumpI, MachineInstr *CmpI);
1323 MachineInstr *CmpI) { in orderBumpCompare() argument
1324 assert (BumpI != CmpI && "Bump and compare in the same instruction?"); in orderBumpCompare()
1327 if (CmpI->getParent() != BB) in orderBumpCompare()
1334 if (&*I == CmpI) in orderBumpCompare()
1338 unsigned PredR = CmpI->getOperand(0).getReg(); in orderBumpCompare()
1340 instr_iterator CmpIt = CmpI->getIterator(), NextIt = std::next(CmpIt); in orderBumpCompare()
1352 BB->splice(++BumpI->getIterator(), BB, CmpI->getIterator()); in orderBumpCompare()
DHexagonSplitDouble.cpp509 const MachineInstr *CmpI = MRI->getVRegDef(PR); in collectIndRegsForLoop() local
510 while (CmpI->getOpcode() == Hexagon::C2_not) in collectIndRegsForLoop()
511 CmpI = MRI->getVRegDef(CmpI->getOperand(1).getReg()); in collectIndRegsForLoop()
514 bool OkCI = TII->analyzeCompare(*CmpI, CmpR1, CmpR2, Mask, Val); in collectIndRegsForLoop()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMInstructionSelector.cpp469 auto CmpI = in insertComparison() local
474 if (!constrainSelectedInstRegOperands(*CmpI, TII, TRI, RBI)) in insertComparison()
629 auto CmpI = BuildMI(MBB, InsertBefore, DbgLoc, TII.get(ARM::CMPri)) in selectSelect() local
633 if (!constrainSelectedInstRegOperands(*CmpI, TII, TRI, RBI)) in selectSelect()
DARMBaseInstrInfo.cpp2605 inline static bool isRedundantFlagInstr(const MachineInstr *CmpI, in isRedundantFlagInstr() argument
2608 if ((CmpI->getOpcode() == ARM::CMPrr || in isRedundantFlagInstr()
2609 CmpI->getOpcode() == ARM::t2CMPrr) && in isRedundantFlagInstr()
2618 if ((CmpI->getOpcode() == ARM::CMPri || in isRedundantFlagInstr()
2619 CmpI->getOpcode() == ARM::t2CMPri) && in isRedundantFlagInstr()
2626 if ((CmpI->getOpcode() == ARM::CMPrr || CmpI->getOpcode() == ARM::t2CMPrr) && in isRedundantFlagInstr()
/external/llvm/lib/Analysis/
DValueTracking.cpp3839 static Value *lookThroughCast(CmpInst *CmpI, Value *V1, Value *V2, in lookThroughCast() argument
3860 if (isa<ZExtInst>(CI) && CmpI->isUnsigned()) in lookThroughCast()
3863 if (isa<SExtInst>(CI) && CmpI->isSigned()) in lookThroughCast()
3867 CastedTo = ConstantExpr::getIntegerCast(C, CI->getSrcTy(), CmpI->isSigned()); in lookThroughCast()
3904 CmpInst *CmpI = dyn_cast<CmpInst>(SI->getCondition()); in matchSelectPattern() local
3905 if (!CmpI) return {SPF_UNKNOWN, SPNB_NA, false}; in matchSelectPattern()
3907 CmpInst::Predicate Pred = CmpI->getPredicate(); in matchSelectPattern()
3908 Value *CmpLHS = CmpI->getOperand(0); in matchSelectPattern()
3909 Value *CmpRHS = CmpI->getOperand(1); in matchSelectPattern()
3913 if (isa<FPMathOperator>(CmpI)) in matchSelectPattern()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DValueTracking.cpp4710 static Value *lookThroughCast(CmpInst *CmpI, Value *V1, Value *V2, in lookThroughCast() argument
4732 if (CmpI->isUnsigned()) in lookThroughCast()
4736 if (CmpI->isSigned()) in lookThroughCast()
4741 if (match(CmpI->getOperand(1), m_Constant(CmpConst)) && in lookThroughCast()
4766 CastedTo = ConstantExpr::getIntegerCast(C, SrcTy, CmpI->isSigned()); in lookThroughCast()
4812 CmpInst *CmpI = dyn_cast<CmpInst>(SI->getCondition()); in matchSelectPattern() local
4813 if (!CmpI) return {SPF_UNKNOWN, SPNB_NA, false}; in matchSelectPattern()
4815 CmpInst::Predicate Pred = CmpI->getPredicate(); in matchSelectPattern()
4816 Value *CmpLHS = CmpI->getOperand(0); in matchSelectPattern()
4817 Value *CmpRHS = CmpI->getOperand(1); in matchSelectPattern()
[all …]
/external/llvm/lib/Target/ARM/
DARMBaseInstrInfo.cpp2361 inline static bool isRedundantFlagInstr(MachineInstr *CmpI, unsigned SrcReg, in isRedundantFlagInstr() argument
2364 if ((CmpI->getOpcode() == ARM::CMPrr || in isRedundantFlagInstr()
2365 CmpI->getOpcode() == ARM::t2CMPrr) && in isRedundantFlagInstr()
2374 if ((CmpI->getOpcode() == ARM::CMPri || in isRedundantFlagInstr()
2375 CmpI->getOpcode() == ARM::t2CMPri) && in isRedundantFlagInstr()