Searched refs:CmpMI (Results 1 – 4 of 4) sorted by relevance
/external/llvm/lib/Target/AArch64/ |
D | AArch64ConditionOptimizer.cpp | 102 CmpInfo adjustCmp(MachineInstr *CmpMI, AArch64CC::CondCode Cmp); 103 void modifyCmp(MachineInstr *CmpMI, const CmpInfo &Info); 104 bool adjustTo(MachineInstr *CmpMI, AArch64CC::CondCode Cmp, MachineInstr *To, 225 MachineInstr *CmpMI, AArch64CC::CondCode Cmp) { in adjustCmp() argument 226 unsigned Opc = CmpMI->getOpcode(); in adjustCmp() 238 const int OldImm = (int)CmpMI->getOperand(2).getImm(); in adjustCmp() 252 void AArch64ConditionOptimizer::modifyCmp(MachineInstr *CmpMI, in modifyCmp() argument 259 MachineBasicBlock *const MBB = CmpMI->getParent(); in modifyCmp() 262 BuildMI(*MBB, CmpMI, CmpMI->getDebugLoc(), TII->get(Opc)) in modifyCmp() 263 .addOperand(CmpMI->getOperand(0)) in modifyCmp() [all …]
|
D | AArch64ConditionalCompares.cpp | 158 MachineInstr *CmpMI; member in __anon2dd089570111::SSACCmpConv 188 bool canSpeculateInstrs(MachineBasicBlock *MBB, const MachineInstr *CmpMI); 381 const MachineInstr *CmpMI) { in canSpeculateInstrs() argument 425 if (&I != CmpMI && I.modifiesRegister(AArch64::NZCV, TRI)) { in canSpeculateInstrs() 552 CmpMI = findConvertibleCompare(CmpBB); in canConvert() 553 if (!CmpMI) in canConvert() 556 if (!canSpeculateInstrs(CmpBB, CmpMI)) { in canConvert() 615 switch (CmpMI->getOpcode()) { in convert() 651 MRI->constrainRegClass(CmpMI->getOperand(FirstOp).getReg(), in convert() 653 if (CmpMI->getOperand(FirstOp + 1).isReg()) in convert() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 1956 MachineBasicBlock::iterator CmpMI = Br.MI; in optimizeThumb2Branches() local 1957 if (CmpMI != Br.MI->getParent()->begin()) { in optimizeThumb2Branches() 1958 --CmpMI; in optimizeThumb2Branches() 1959 if (CmpMI->getOpcode() == ARM::tCMPi8) { in optimizeThumb2Branches() 1960 unsigned Reg = CmpMI->getOperand(0).getReg(); in optimizeThumb2Branches() 1961 Pred = getInstrPredicate(CmpMI, PredReg); in optimizeThumb2Branches() 1963 CmpMI->getOperand(1).getImm() == 0 && in optimizeThumb2Branches() 1966 DEBUG(dbgs() << "Fold: " << *CmpMI << " and: " << *Br.MI); in optimizeThumb2Branches() 1968 BuildMI(*MBB, CmpMI, Br.MI->getDebugLoc(), TII->get(NewOpc)) in optimizeThumb2Branches() 1970 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()
|