Home
last modified time | relevance | path

Searched refs:CmpInstr (Results 1 – 10 of 10) sorted by relevance

/external/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp828 MachineInstr *CmpInstr, unsigned SrcReg, unsigned SrcReg2, int CmpMask, in optimizeCompareInstr() argument
832 int Cmp_NZCV = CmpInstr->findRegisterDefOperandIdx(AArch64::NZCV, true); in optimizeCompareInstr()
834 if (CmpInstr->definesRegister(AArch64::WZR) || in optimizeCompareInstr()
835 CmpInstr->definesRegister(AArch64::XZR)) { in optimizeCompareInstr()
836 CmpInstr->eraseFromParent(); in optimizeCompareInstr()
839 unsigned Opc = CmpInstr->getOpcode(); in optimizeCompareInstr()
840 unsigned NewOpc = convertFlagSettingOpcode(CmpInstr); in optimizeCompareInstr()
844 CmpInstr->setDesc(MCID); in optimizeCompareInstr()
845 CmpInstr->RemoveOperand(Cmp_NZCV); in optimizeCompareInstr()
846 bool succeeded = UpdateOperandRegClass(CmpInstr); in optimizeCompareInstr()
[all …]
DAArch64InstrInfo.h162 bool optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg,
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp1504 bool PPCInstrInfo::optimizeCompareInstr(MachineInstr *CmpInstr, in optimizeCompareInstr() argument
1511 int OpC = CmpInstr->getOpcode(); in optimizeCompareInstr()
1512 unsigned CRReg = CmpInstr->getOperand(0).getReg(); in optimizeCompareInstr()
1585 MachineBasicBlock::iterator I = CmpInstr; in optimizeCompareInstr()
1588 for (MachineBasicBlock::iterator EL = CmpInstr->getParent()->end(); in optimizeCompareInstr()
1613 else if (MI->getParent() != CmpInstr->getParent() || Value != 0) { in optimizeCompareInstr()
1624 B = CmpInstr->getParent()->begin(); in optimizeCompareInstr()
1630 if (&*I != CmpInstr && ( in optimizeCompareInstr()
1732 CmpInstr->eraseFromParent(); in optimizeCompareInstr()
DPPCInstrInfo.h255 bool optimizeCompareInstr(MachineInstr *CmpInstr,
/external/llvm/lib/Target/SystemZ/
DSystemZInstrInfo.h156 bool optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg,
/external/llvm/lib/Target/ARM/
DARMBaseInstrInfo.cpp2389 optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, unsigned SrcReg2, in optimizeCompareInstr() argument
2403 if (UI->getParent() != CmpInstr->getParent()) continue; in optimizeCompareInstr()
2416 MachineBasicBlock::iterator I = CmpInstr, E = MI, in optimizeCompareInstr()
2417 B = CmpInstr->getParent()->begin(); in optimizeCompareInstr()
2430 else if (MI->getParent() != CmpInstr->getParent() || CmpValue != 0) { in optimizeCompareInstr()
2435 if (CmpInstr->getOpcode() == ARM::CMPri || in optimizeCompareInstr()
2436 CmpInstr->getOpcode() == ARM::t2CMPri) in optimizeCompareInstr()
2456 if (isRedundantFlagInstr(CmpInstr, SrcReg, SrcReg2, CmpValue, &*I)) { in optimizeCompareInstr()
2521 I = CmpInstr; in optimizeCompareInstr()
2522 E = CmpInstr->getParent()->end(); in optimizeCompareInstr()
[all …]
DARMBaseInstrInfo.h263 bool optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg,
/external/llvm/lib/Target/X86/
DX86InstrInfo.h512 bool optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg,
DX86InstrInfo.cpp4920 optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, unsigned SrcReg2, in optimizeCompareInstr() argument
4925 switch (CmpInstr->getOpcode()) { in optimizeCompareInstr()
4942 if (!MRI->use_nodbg_empty(CmpInstr->getOperand(0).getReg())) in optimizeCompareInstr()
4945 switch (CmpInstr->getOpcode()) { in optimizeCompareInstr()
4963 CmpInstr->setDesc(get(NewOpcode)); in optimizeCompareInstr()
4964 CmpInstr->RemoveOperand(0); in optimizeCompareInstr()
4977 MachineBasicBlock::iterator I = CmpInstr, Def = MI; in optimizeCompareInstr()
4982 if (IsCmpZero && MI->getParent() != CmpInstr->getParent()) in optimizeCompareInstr()
5023 RE = CmpInstr->getParent() == MI->getParent() ? in optimizeCompareInstr()
5025 CmpInstr->getParent()->rend(); in optimizeCompareInstr()
[all …]
/external/llvm/include/llvm/Target/
DTargetInstrInfo.h1104 virtual bool optimizeCompareInstr(MachineInstr *CmpInstr, in optimizeCompareInstr() argument