mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Don't waste time trying to CSE labels, phis, inline asm. Definitely avoid cse implicit-def for obvious performance reason.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98009 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -171,6 +171,10 @@ bool MachineCSE::hasLivePhysRegDefUse(MachineInstr *MI, MachineBasicBlock *MBB){
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool MachineCSE::isCSECandidate(MachineInstr *MI) {
|
bool MachineCSE::isCSECandidate(MachineInstr *MI) {
|
||||||
|
if (MI->isLabel() || MI->isPHI() || MI->isImplicitDef() ||
|
||||||
|
MI->isKill() || MI->isInlineAsm())
|
||||||
|
return false;
|
||||||
|
|
||||||
// Ignore copies or instructions that read / write physical registers
|
// Ignore copies or instructions that read / write physical registers
|
||||||
// (except for dead defs of physical registers).
|
// (except for dead defs of physical registers).
|
||||||
unsigned SrcReg, DstReg, SrcSubIdx, DstSubIdx;
|
unsigned SrcReg, DstReg, SrcSubIdx, DstSubIdx;
|
||||||
|
Reference in New Issue
Block a user