Home
last modified time | relevance | path

Searched refs:CmpMI (Results 1 – 3 of 3) sorted by relevance

/external/llvm/lib/Target/AArch64/
DAArch64ConditionOptimizer.cpp99 CmpInfo adjustCmp(MachineInstr *CmpMI, AArch64CC::CondCode Cmp);
100 void modifyCmp(MachineInstr *CmpMI, const CmpInfo &Info);
101 bool adjustTo(MachineInstr *CmpMI, AArch64CC::CondCode Cmp, MachineInstr *To,
218 MachineInstr *CmpMI, AArch64CC::CondCode Cmp) { in adjustCmp() argument
219 int Opc = CmpMI->getOpcode(); in adjustCmp()
231 const int OldImm = (int)CmpMI->getOperand(2).getImm(); in adjustCmp()
245 void AArch64ConditionOptimizer::modifyCmp(MachineInstr *CmpMI, in modifyCmp() argument
252 MachineBasicBlock *const MBB = CmpMI->getParent(); in modifyCmp()
255 BuildMI(*MBB, CmpMI, CmpMI->getDebugLoc(), TII->get(Opc)) in modifyCmp()
256 .addOperand(CmpMI->getOperand(0)) in modifyCmp()
[all …]
DAArch64ConditionalCompares.cpp158 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/
DARMConstantIslandPass.cpp1823 MachineBasicBlock::iterator CmpMI = Br.MI; in optimizeThumb2Branches() local
1824 if (CmpMI != Br.MI->getParent()->begin()) { in optimizeThumb2Branches()
1825 --CmpMI; in optimizeThumb2Branches()
1826 if (CmpMI->getOpcode() == ARM::tCMPi8) { in optimizeThumb2Branches()
1827 unsigned Reg = CmpMI->getOperand(0).getReg(); in optimizeThumb2Branches()
1828 Pred = getInstrPredicate(CmpMI, PredReg); in optimizeThumb2Branches()
1830 CmpMI->getOperand(1).getImm() == 0 && in optimizeThumb2Branches()
1833 DEBUG(dbgs() << "Fold: " << *CmpMI << " and: " << *Br.MI); in optimizeThumb2Branches()
1835 BuildMI(*MBB, CmpMI, Br.MI->getDebugLoc(), TII->get(NewOpc)) in optimizeThumb2Branches()
1837 CmpMI->eraseFromParent(); in optimizeThumb2Branches()