Searched refs:CmpMI (Results 1 – 5 of 5) sorted by relevance
/external/llvm/lib/Target/AArch64/ |
D | AArch64ConditionOptimizer.cpp | 101 CmpInfo adjustCmp(MachineInstr *CmpMI, AArch64CC::CondCode Cmp); 102 void modifyCmp(MachineInstr *CmpMI, const CmpInfo &Info); 103 bool adjustTo(MachineInstr *CmpMI, AArch64CC::CondCode Cmp, MachineInstr *To, 232 MachineInstr *CmpMI, AArch64CC::CondCode Cmp) { in adjustCmp() argument 233 unsigned Opc = CmpMI->getOpcode(); in adjustCmp() 245 const int OldImm = (int)CmpMI->getOperand(2).getImm(); in adjustCmp() 259 void AArch64ConditionOptimizer::modifyCmp(MachineInstr *CmpMI, in modifyCmp() argument 266 MachineBasicBlock *const MBB = CmpMI->getParent(); in modifyCmp() 269 BuildMI(*MBB, CmpMI, CmpMI->getDebugLoc(), TII->get(Opc)) in modifyCmp() 270 .addOperand(CmpMI->getOperand(0)) in modifyCmp() [all …]
|
D | AArch64ConditionalCompares.cpp | 155 MachineInstr *CmpMI; member in __anon1c7a2d760111::SSACCmpConv 185 bool canSpeculateInstrs(MachineBasicBlock *MBB, const MachineInstr *CmpMI); 378 const MachineInstr *CmpMI) { in canSpeculateInstrs() argument 422 if (&I != CmpMI && I.modifiesRegister(AArch64::NZCV, TRI)) { in canSpeculateInstrs() 549 CmpMI = findConvertibleCompare(CmpBB); in canConvert() 550 if (!CmpMI) in canConvert() 553 if (!canSpeculateInstrs(CmpBB, CmpMI)) { in canConvert() 612 switch (CmpMI->getOpcode()) { in convert() 648 MRI->constrainRegClass(CmpMI->getOperand(FirstOp).getReg(), in convert() 650 if (CmpMI->getOperand(FirstOp + 1).isReg()) in convert() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 1668 MachineBasicBlock::iterator CmpMI = Br.MI; in OptimizeThumb2Branches() local 1669 if (CmpMI != Br.MI->getParent()->begin()) { in OptimizeThumb2Branches() 1670 --CmpMI; in OptimizeThumb2Branches() 1671 if (CmpMI->getOpcode() == ARM::tCMPi8) { in OptimizeThumb2Branches() 1672 unsigned Reg = CmpMI->getOperand(0).getReg(); in OptimizeThumb2Branches() 1673 Pred = llvm::getInstrPredicate(CmpMI, PredReg); in OptimizeThumb2Branches() 1675 CmpMI->getOperand(1).getImm() == 0 && in OptimizeThumb2Branches() 1679 BuildMI(*MBB, CmpMI, Br.MI->getDebugLoc(), TII->get(NewOpc)) in OptimizeThumb2Branches() 1681 CmpMI->eraseFromParent(); in OptimizeThumb2Branches()
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 1958 MachineBasicBlock::iterator CmpMI = Br.MI; in optimizeThumb2Branches() local 1959 if (CmpMI != Br.MI->getParent()->begin()) { in optimizeThumb2Branches() 1960 --CmpMI; in optimizeThumb2Branches() 1961 if (CmpMI->getOpcode() == ARM::tCMPi8) { in optimizeThumb2Branches() 1962 unsigned Reg = CmpMI->getOperand(0).getReg(); in optimizeThumb2Branches() 1963 Pred = getInstrPredicate(*CmpMI, PredReg); in optimizeThumb2Branches() 1965 CmpMI->getOperand(1).getImm() == 0 && in optimizeThumb2Branches() 1968 DEBUG(dbgs() << "Fold: " << *CmpMI << " and: " << *Br.MI); in optimizeThumb2Branches() 1970 BuildMI(*MBB, CmpMI, Br.MI->getDebugLoc(), TII->get(NewOpc)) in optimizeThumb2Branches() 1972 CmpMI->eraseFromParent(); in optimizeThumb2Branches()
|
D | ARMBaseInstrInfo.cpp | 1714 MachineBasicBlock::iterator CmpMI = LastMI; in isProfitableToIfCvt() local 1715 if (CmpMI != Pred->begin()) { in isProfitableToIfCvt() 1716 --CmpMI; in isProfitableToIfCvt() 1717 if (CmpMI->getOpcode() == ARM::tCMPi8 || in isProfitableToIfCvt() 1718 CmpMI->getOpcode() == ARM::t2CMPri) { in isProfitableToIfCvt() 1719 unsigned Reg = CmpMI->getOperand(0).getReg(); in isProfitableToIfCvt() 1721 ARMCC::CondCodes P = getInstrPredicate(*CmpMI, PredReg); in isProfitableToIfCvt() 1722 if (P == ARMCC::AL && CmpMI->getOperand(1).getImm() == 0 && in isProfitableToIfCvt()
|