From 9446407963005f3edfa8ac70e265c81839a416c9 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Wed, 24 Sep 2008 01:07:17 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56539 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SimpleRegisterCoalescing.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/CodeGen/SimpleRegisterCoalescing.cpp') diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index 05e0505..bdc37b1 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -1206,14 +1206,6 @@ bool SimpleRegisterCoalescing::JoinCopy(CopyRec &TheCopy, bool &Again) { DOUT << " and "; DstInt.print(DOUT, tri_); DOUT << ": "; - // If one interval is earlyclobber and the other is overlaps-earlyclobber, - // we cannot coalesce them. - if ((SrcInt.isEarlyClobber && DstInt.overlapsEarlyClobber) || - (DstInt.isEarlyClobber && SrcInt.overlapsEarlyClobber)) { - DOUT << "\t\tCannot join due to earlyclobber."; - return false; - } - // Check if it is necessary to propagate "isDead" property. if (!isExtSubReg && !isInsSubReg) { MachineOperand *mopd = CopyMI->findRegisterDefOperand(DstReg, false); @@ -1374,10 +1366,6 @@ bool SimpleRegisterCoalescing::JoinCopy(CopyRec &TheCopy, bool &Again) { if (TargetRegisterInfo::isVirtualRegister(DstReg)) RemoveUnnecessaryKills(DstReg, *ResDstInt); - // Merge the earlyclobber bits. - ResDstInt->isEarlyClobber |= ResSrcInt->isEarlyClobber; - ResDstInt->overlapsEarlyClobber |= ResSrcInt->overlapsEarlyClobber; - if (isInsSubReg) // Avoid: // r1024 = op -- cgit v1.1