mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Don't waste time trying to CSE labels, phis, inline asm. Definitely avoid cse implicit-def for obvious performance reason.
llvm-svn: 98009
This commit is contained in:
parent
ca86fb517c
commit
8afdea401a
@ -171,6 +171,10 @@ bool MachineCSE::hasLivePhysRegDefUse(MachineInstr *MI, MachineBasicBlock *MBB){
|
||||
}
|
||||
|
||||
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
|
||||
// (except for dead defs of physical registers).
|
||||
unsigned SrcReg, DstReg, SrcSubIdx, DstSubIdx;
|
||||
|
Loading…
Reference in New Issue
Block a user