From c498b0281fa81bc213ad1a1228664d480936c0e6 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 14 Nov 2007 07:59:08 +0000 Subject: Clean up sub-register implementation by moving subReg information back to MachineOperand auxInfo. Previous clunky implementation uses an external map to track sub-register uses. That works because register allocator uses a new virtual register for each spilled use. With interval splitting (coming soon), we may have multiple uses of the same register some of which are of using different sub-registers from others. It's too fragile to constantly update the information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44104 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineInstr.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/CodeGen/MachineInstr.cpp') diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index a3485bc524..c5145ff180 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -39,6 +39,7 @@ void MachineInstr::addImplicitDefUseOperands() { Op.IsKill = false; Op.IsDead = false; Op.contents.RegNo = *ImpDefs; + Op.auxInfo.subReg = 0; Operands.push_back(Op); } if (TID->ImplicitUses) @@ -50,6 +51,7 @@ void MachineInstr::addImplicitDefUseOperands() { Op.IsKill = false; Op.IsDead = false; Op.contents.RegNo = *ImpUses; + Op.auxInfo.subReg = 0; Operands.push_back(Op); } } -- cgit v1.2.3-70-g09d2