Home
last modified time | relevance | path

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

/external/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp827 MachineInstr *CmpInstr, unsigned SrcReg, unsigned SrcReg2, int CmpMask, in optimizeCompareInstr() argument
831 int Cmp_NZCV = CmpInstr->findRegisterDefOperandIdx(AArch64::NZCV, true); in optimizeCompareInstr()
833 if (CmpInstr->definesRegister(AArch64::WZR) || in optimizeCompareInstr()
834 CmpInstr->definesRegister(AArch64::XZR)) { in optimizeCompareInstr()
835 CmpInstr->eraseFromParent(); in optimizeCompareInstr()
838 unsigned Opc = CmpInstr->getOpcode(); in optimizeCompareInstr()
839 unsigned NewOpc = convertFlagSettingOpcode(CmpInstr); in optimizeCompareInstr()
843 CmpInstr->setDesc(MCID); in optimizeCompareInstr()
844 CmpInstr->RemoveOperand(Cmp_NZCV); in optimizeCompareInstr()
845 bool succeeded = UpdateOperandRegClass(CmpInstr); in optimizeCompareInstr()
[all …]
DAArch64InstrInfo.h164 bool optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg,
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp1409 bool PPCInstrInfo::optimizeCompareInstr(MachineInstr *CmpInstr, in optimizeCompareInstr() argument
1416 int OpC = CmpInstr->getOpcode(); in optimizeCompareInstr()
1417 unsigned CRReg = CmpInstr->getOperand(0).getReg(); in optimizeCompareInstr()
1490 MachineBasicBlock::iterator I = CmpInstr; in optimizeCompareInstr()
1493 for (MachineBasicBlock::iterator EL = CmpInstr->getParent()->end(); in optimizeCompareInstr()
1518 else if (MI->getParent() != CmpInstr->getParent() || Value != 0) { in optimizeCompareInstr()
1529 B = CmpInstr->getParent()->begin(); in optimizeCompareInstr()
1535 if (&*I != CmpInstr && ( in optimizeCompareInstr()
1637 CmpInstr->eraseFromParent(); in optimizeCompareInstr()
DPPCInstrInfo.h231 bool optimizeCompareInstr(MachineInstr *CmpInstr,
/external/llvm/lib/Target/SystemZ/
DSystemZInstrInfo.h157 bool optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg,
/external/llvm/lib/Target/ARM/
DARMBaseInstrInfo.cpp2359 optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, unsigned SrcReg2, in optimizeCompareInstr() argument
2373 if (UI->getParent() != CmpInstr->getParent()) continue; in optimizeCompareInstr()
2386 MachineBasicBlock::iterator I = CmpInstr, E = MI, in optimizeCompareInstr()
2387 B = CmpInstr->getParent()->begin(); in optimizeCompareInstr()
2400 else if (MI->getParent() != CmpInstr->getParent() || CmpValue != 0) { in optimizeCompareInstr()
2405 if (CmpInstr->getOpcode() == ARM::CMPri || in optimizeCompareInstr()
2406 CmpInstr->getOpcode() == ARM::t2CMPri) in optimizeCompareInstr()
2426 if (isRedundantFlagInstr(CmpInstr, SrcReg, SrcReg2, CmpValue, &*I)) { in optimizeCompareInstr()
2491 I = CmpInstr; in optimizeCompareInstr()
2492 E = CmpInstr->getParent()->end(); in optimizeCompareInstr()
[all …]
DARMBaseInstrInfo.h255 bool optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg,
/external/llvm/lib/Target/X86/
DX86InstrInfo.h440 bool optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg,
DX86InstrInfo.cpp4275 optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, unsigned SrcReg2, in optimizeCompareInstr() argument
4280 switch (CmpInstr->getOpcode()) { in optimizeCompareInstr()
4297 if (!MRI->use_nodbg_empty(CmpInstr->getOperand(0).getReg())) in optimizeCompareInstr()
4300 switch (CmpInstr->getOpcode()) { in optimizeCompareInstr()
4318 CmpInstr->setDesc(get(NewOpcode)); in optimizeCompareInstr()
4319 CmpInstr->RemoveOperand(0); in optimizeCompareInstr()
4332 MachineBasicBlock::iterator I = CmpInstr, Def = MI; in optimizeCompareInstr()
4337 if (IsCmpZero && MI->getParent() != CmpInstr->getParent()) in optimizeCompareInstr()
4378 RE = CmpInstr->getParent() == MI->getParent() ? in optimizeCompareInstr()
4380 CmpInstr->getParent()->rend(); in optimizeCompareInstr()
[all …]
/external/llvm/include/llvm/Target/
DTargetInstrInfo.h976 virtual bool optimizeCompareInstr(MachineInstr *CmpInstr, in optimizeCompareInstr() argument