diff options
author | Dale Johannesen <dalej@apple.com> | 2008-09-24 01:07:17 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-09-24 01:07:17 +0000 |
commit | c36660d756c3dafa9534e02c58b76f7bad7c3562 (patch) | |
tree | 62c8a68dd7f3ba0b1cadb03f36c1a694c1122d75 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | e2aef07b2ddd0eeea19d304ad4993b75882c2b40 (diff) | |
download | bcm5719-llvm-c36660d756c3dafa9534e02c58b76f7bad7c3562.tar.gz bcm5719-llvm-c36660d756c3dafa9534e02c58b76f7bad7c3562.zip |
Next round of earlyclobber handling. Approach the
RA problem by expanding the live interval of an
earlyclobber def back one slot. Remove
overlap-earlyclobber throughout. Remove
earlyclobber bits and their handling from
live internals.
llvm-svn: 56539
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 7d44d4ee79f..4db02f49819 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -109,7 +109,6 @@ void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp, // register's use/def lists. if (isRegister()) { assert(!isEarlyClobber()); - assert(!isEarlyClobber() && !overlapsEarlyClobber()); setReg(Reg); } else { // Otherwise, change this to a register and set the reg#. @@ -129,7 +128,6 @@ void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp, IsKill = isKill; IsDead = isDead; IsEarlyClobber = false; - OverlapsEarlyClobber = false; SubReg = 0; } @@ -185,14 +183,9 @@ void MachineOperand::print(std::ostream &OS, const TargetMachine *TM) const { OS << "%mreg" << getReg(); } - if (isDef() || isKill() || isDead() || isImplicit() || isEarlyClobber() || - overlapsEarlyClobber()) { + if (isDef() || isKill() || isDead() || isImplicit() || isEarlyClobber()) { OS << "<"; bool NeedComma = false; - if (overlapsEarlyClobber()) { - NeedComma = true; - OS << "overlapsearly"; - } if (isImplicit()) { if (NeedComma) OS << ","; OS << (isDef() ? "imp-def" : "imp-use"); |