/external/llvm/lib/Target/Lanai/ |
D | LanaiInstrInfo.cpp | 286 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()
|
D | LanaiInstrInfo.h | 101 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/ |
D | LanaiInstrInfo.cpp | 285 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()
|
D | LanaiInstrInfo.h | 103 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64InstrInfo.cpp | 883 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 …]
|
D | AArch64InstrInfo.h | 170 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg, 211 bool substituteCmpToZero(MachineInstr &CmpInstr, unsigned SrcReg,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
D | AArch64InstrInfo.cpp | 1309 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 …]
|
D | AArch64InstrInfo.h | 200 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg, 273 bool substituteCmpToZero(MachineInstr &CmpInstr, unsigned SrcReg,
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCInstrInfo.cpp | 1527 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()
|
D | PPCInstrInfo.h | 252 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ARMBaseInstrInfo.cpp | 2701 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 …]
|
D | ARMBaseInstrInfo.h | 292 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZInstrInfo.h | 173 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
|
/external/llvm/lib/Target/ARM/ |
D | ARMBaseInstrInfo.cpp | 2392 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 …]
|
D | ARMBaseInstrInfo.h | 261 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/ |
D | SystemZInstrInfo.h | 211 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCInstrInfo.h | 317 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
|
D | PPCInstrInfo.cpp | 1625 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/ |
D | ARMBaseInstrInfo.h | 195 virtual bool OptimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg,
|
D | ARMBaseInstrInfo.cpp | 1732 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/ |
D | TargetInstrInfo.h | 612 virtual bool OptimizeCompareInstr(MachineInstr *CmpInstr, in OptimizeCompareInstr() argument
|
/external/llvm/lib/Target/X86/ |
D | X86InstrInfo.h | 510 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
|
D | X86InstrInfo.cpp | 5044 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/ |
D | X86InstrInfo.h | 525 bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
|
D | X86InstrInfo.cpp | 3620 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 …]
|