Home
last modified time | relevance | path

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

12

/external/llvm/lib/Target/Lanai/
DLanaiInstrInfo.cpp286 MachineInstr &CmpInstr, unsigned SrcReg, unsigned SrcReg2, int CmpMask, in optimizeCompareInstr() argument
294 MachineBasicBlock::iterator I = CmpInstr, E = MI, in optimizeCompareInstr()
295 B = CmpInstr.getParent()->begin(); in optimizeCompareInstr()
309 else if (MI->getParent() != CmpInstr.getParent() || CmpValue != 0) { in optimizeCompareInstr()
313 if (CmpInstr.getOpcode() == Lanai::SFSUB_F_RI_LO) in optimizeCompareInstr()
332 if (isRedundantFlagInstr(&CmpInstr, SrcReg, SrcReg2, CmpValue, &*I)) { in optimizeCompareInstr()
355 I = CmpInstr; in optimizeCompareInstr()
356 E = CmpInstr.getParent()->end(); in optimizeCompareInstr()
422 MachineBasicBlock *MBB = CmpInstr.getParent(); in optimizeCompareInstr()
433 CmpInstr.eraseFromParent(); in optimizeCompareInstr()
DLanaiInstrInfo.h101 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/
DLanaiInstrInfo.cpp285 MachineInstr &CmpInstr, unsigned SrcReg, unsigned SrcReg2, int /*CmpMask*/, in optimizeCompareInstr() argument
293 MachineBasicBlock::iterator I = CmpInstr, E = MI, in optimizeCompareInstr()
294 B = CmpInstr.getParent()->begin(); in optimizeCompareInstr()
308 else if (MI->getParent() != CmpInstr.getParent() || CmpValue != 0) { in optimizeCompareInstr()
312 if (CmpInstr.getOpcode() == Lanai::SFSUB_F_RI_LO) in optimizeCompareInstr()
331 if (isRedundantFlagInstr(&CmpInstr, SrcReg, SrcReg2, CmpValue, &*I)) { in optimizeCompareInstr()
354 I = CmpInstr; in optimizeCompareInstr()
355 E = CmpInstr.getParent()->end(); in optimizeCompareInstr()
421 MachineBasicBlock *MBB = CmpInstr.getParent(); in optimizeCompareInstr()
432 CmpInstr.eraseFromParent(); in optimizeCompareInstr()
DLanaiInstrInfo.h103 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
/external/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp883 MachineInstr &CmpInstr, unsigned SrcReg, unsigned SrcReg2, int CmpMask, in optimizeCompareInstr() argument
885 assert(CmpInstr.getParent()); in optimizeCompareInstr()
889 int DeadNZCVIdx = CmpInstr.findRegisterDefOperandIdx(AArch64::NZCV, true); in optimizeCompareInstr()
891 if (CmpInstr.definesRegister(AArch64::WZR) || in optimizeCompareInstr()
892 CmpInstr.definesRegister(AArch64::XZR)) { in optimizeCompareInstr()
893 CmpInstr.eraseFromParent(); in optimizeCompareInstr()
896 unsigned Opc = CmpInstr.getOpcode(); in optimizeCompareInstr()
897 unsigned NewOpc = convertFlagSettingOpcode(CmpInstr); in optimizeCompareInstr()
901 CmpInstr.setDesc(MCID); in optimizeCompareInstr()
902 CmpInstr.RemoveOperand(DeadNZCVIdx); in optimizeCompareInstr()
[all …]
DAArch64InstrInfo.h170 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
211 bool substituteCmpToZero(MachineInstr &CmpInstr, unsigned SrcReg,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp1309 MachineInstr &CmpInstr, unsigned SrcReg, unsigned SrcReg2, int CmpMask, in optimizeCompareInstr() argument
1311 assert(CmpInstr.getParent()); in optimizeCompareInstr()
1315 int DeadNZCVIdx = CmpInstr.findRegisterDefOperandIdx(AArch64::NZCV, true); in optimizeCompareInstr()
1317 if (CmpInstr.definesRegister(AArch64::WZR) || in optimizeCompareInstr()
1318 CmpInstr.definesRegister(AArch64::XZR)) { in optimizeCompareInstr()
1319 CmpInstr.eraseFromParent(); in optimizeCompareInstr()
1322 unsigned Opc = CmpInstr.getOpcode(); in optimizeCompareInstr()
1323 unsigned NewOpc = convertToNonFlagSettingOpc(CmpInstr); in optimizeCompareInstr()
1327 CmpInstr.setDesc(MCID); in optimizeCompareInstr()
1328 CmpInstr.RemoveOperand(DeadNZCVIdx); in optimizeCompareInstr()
[all …]
DAArch64InstrInfo.h200 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
273 bool substituteCmpToZero(MachineInstr &CmpInstr, unsigned SrcReg,
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp1527 bool PPCInstrInfo::optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg, in optimizeCompareInstr() argument
1533 int OpC = CmpInstr.getOpcode(); in optimizeCompareInstr()
1534 unsigned CRReg = CmpInstr.getOperand(0).getReg(); in optimizeCompareInstr()
1614 MachineBasicBlock::iterator I = CmpInstr; in optimizeCompareInstr()
1617 for (MachineBasicBlock::iterator EL = CmpInstr.getParent()->end(); I != EL; in optimizeCompareInstr()
1642 else if (MI->getParent() != CmpInstr.getParent() || Value != 0) { in optimizeCompareInstr()
1652 MachineBasicBlock::iterator E = MI, B = CmpInstr.getParent()->begin(); in optimizeCompareInstr()
1658 if (&*I != &CmpInstr && (Instr.modifiesRegister(PPC::CR0, TRI) || in optimizeCompareInstr()
1759 CmpInstr.eraseFromParent(); in optimizeCompareInstr()
DPPCInstrInfo.h252 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMBaseInstrInfo.cpp2701 MachineInstr &CmpInstr, unsigned SrcReg, unsigned SrcReg2, int CmpMask, in optimizeCompareInstr() argument
2714 if (UI->getParent() != CmpInstr.getParent()) in optimizeCompareInstr()
2728 MachineBasicBlock::iterator I = CmpInstr, E = MI, in optimizeCompareInstr()
2729 B = CmpInstr.getParent()->begin(); in optimizeCompareInstr()
2743 else if (MI->getParent() != CmpInstr.getParent() || CmpValue != 0) { in optimizeCompareInstr()
2748 if (CmpInstr.getOpcode() == ARM::CMPri || in optimizeCompareInstr()
2749 CmpInstr.getOpcode() == ARM::t2CMPri) in optimizeCompareInstr()
2783 E = CmpInstr; in optimizeCompareInstr()
2784 CmpInstr.getParent()->insert(E, MI); in optimizeCompareInstr()
2786 I = CmpInstr; in optimizeCompareInstr()
[all …]
DARMBaseInstrInfo.h292 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
/external/llvm/lib/Target/SystemZ/
DSystemZInstrInfo.h173 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
/external/llvm/lib/Target/ARM/
DARMBaseInstrInfo.cpp2392 MachineInstr &CmpInstr, unsigned SrcReg, unsigned SrcReg2, int CmpMask, in optimizeCompareInstr() argument
2405 if (UI->getParent() != CmpInstr.getParent()) in optimizeCompareInstr()
2419 MachineBasicBlock::iterator I = CmpInstr, E = MI, in optimizeCompareInstr()
2420 B = CmpInstr.getParent()->begin(); in optimizeCompareInstr()
2433 else if (MI->getParent() != CmpInstr.getParent() || CmpValue != 0) { in optimizeCompareInstr()
2438 if (CmpInstr.getOpcode() == ARM::CMPri || in optimizeCompareInstr()
2439 CmpInstr.getOpcode() == ARM::t2CMPri) in optimizeCompareInstr()
2459 if (isRedundantFlagInstr(&CmpInstr, SrcReg, SrcReg2, CmpValue, &*I)) { in optimizeCompareInstr()
2524 I = CmpInstr; in optimizeCompareInstr()
2525 E = CmpInstr.getParent()->end(); in optimizeCompareInstr()
[all …]
DARMBaseInstrInfo.h261 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZInstrInfo.h211 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCInstrInfo.h317 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
DPPCInstrInfo.cpp1625 bool PPCInstrInfo::optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg, in optimizeCompareInstr() argument
1631 int OpC = CmpInstr.getOpcode(); in optimizeCompareInstr()
1632 unsigned CRReg = CmpInstr.getOperand(0).getReg(); in optimizeCompareInstr()
1701 MachineBasicBlock::iterator I = CmpInstr; in optimizeCompareInstr()
1704 for (MachineBasicBlock::iterator EL = CmpInstr.getParent()->end(); I != EL; in optimizeCompareInstr()
1733 else if (MI->getParent() != CmpInstr.getParent()) in optimizeCompareInstr()
1784 MachineBasicBlock::iterator E = MI, B = CmpInstr.getParent()->begin(); in optimizeCompareInstr()
1790 if (&*I != &CmpInstr && (Instr.modifiesRegister(PPC::CR0, TRI) || in optimizeCompareInstr()
1895 CmpInstr.eraseFromParent(); in optimizeCompareInstr()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMBaseInstrInfo.h195 virtual bool OptimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg,
DARMBaseInstrInfo.cpp1732 OptimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, int CmpMask, in OptimizeCompareInstr() argument
1750 if (UI->getParent() != CmpInstr->getParent()) continue; in OptimizeCompareInstr()
1763 if (MI->getParent() != CmpInstr->getParent()) in OptimizeCompareInstr()
1768 MachineBasicBlock::const_iterator I = CmpInstr, E = MI, in OptimizeCompareInstr()
1834 I = CmpInstr; in OptimizeCompareInstr()
1870 CmpInstr->eraseFromParent(); in OptimizeCompareInstr()
/external/swiftshader/third_party/LLVM/include/llvm/Target/
DTargetInstrInfo.h612 virtual bool OptimizeCompareInstr(MachineInstr *CmpInstr, in OptimizeCompareInstr() argument
/external/llvm/lib/Target/X86/
DX86InstrInfo.h510 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
DX86InstrInfo.cpp5044 bool X86InstrInfo::optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg, in optimizeCompareInstr() argument
5050 switch (CmpInstr.getOpcode()) { in optimizeCompareInstr()
5067 if (!MRI->use_nodbg_empty(CmpInstr.getOperand(0).getReg())) in optimizeCompareInstr()
5070 switch (CmpInstr.getOpcode()) { in optimizeCompareInstr()
5088 CmpInstr.setDesc(get(NewOpcode)); in optimizeCompareInstr()
5089 CmpInstr.RemoveOperand(0); in optimizeCompareInstr()
5102 MachineBasicBlock::iterator I = CmpInstr, Def = MI; in optimizeCompareInstr()
5107 if (IsCmpZero && MI->getParent() != CmpInstr.getParent()) in optimizeCompareInstr()
5149 RE = CmpInstr.getParent() == MI->getParent() in optimizeCompareInstr()
5151 : CmpInstr.getParent()->rend(); in optimizeCompareInstr()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86InstrInfo.h525 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
DX86InstrInfo.cpp3620 bool X86InstrInfo::optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg, in optimizeCompareInstr() argument
3626 switch (CmpInstr.getOpcode()) { in optimizeCompareInstr()
3643 if (!MRI->use_nodbg_empty(CmpInstr.getOperand(0).getReg())) in optimizeCompareInstr()
3646 switch (CmpInstr.getOpcode()) { in optimizeCompareInstr()
3664 CmpInstr.setDesc(get(NewOpcode)); in optimizeCompareInstr()
3665 CmpInstr.RemoveOperand(0); in optimizeCompareInstr()
3678 MachineBasicBlock::iterator I = CmpInstr, Def = MI; in optimizeCompareInstr()
3683 if (IsCmpZero && MI->getParent() != CmpInstr.getParent()) in optimizeCompareInstr()
3725 RE = CmpInstr.getParent() == MI->getParent() in optimizeCompareInstr()
3727 : CmpInstr.getParent()->rend(); in optimizeCompareInstr()
[all …]

12