diff options
author | Eric Christopher <echristo@apple.com> | 2011-04-18 19:26:25 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-04-18 19:26:25 +0000 |
commit | c37aa0b26a0489028c9e1c30949d766a33ba073e (patch) | |
tree | 2f2af85385656112f26af513b11be23b0c101797 /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | d28977c7c2992501ec2dfcf159718536f0c6b951 (diff) | |
download | bcm5719-llvm-c37aa0b26a0489028c9e1c30949d766a33ba073e.tar.gz bcm5719-llvm-c37aa0b26a0489028c9e1c30949d766a33ba073e.zip |
Fix a bug where we were counting the alias sets as completely used
registers for fast allocation a different way. This has us updating
used registers only when we're using that exact register.
Fixes rdar://9207598
llvm-svn: 129711
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index 7bb849ef546..93e3adc3c78 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -396,7 +396,6 @@ void RAFast::definePhysReg(MachineInstr *MI, unsigned PhysReg, PhysRegState[PhysReg] = NewState; for (const unsigned *AS = TRI->getAliasSet(PhysReg); unsigned Alias = *AS; ++AS) { - UsedInInstr.set(Alias); switch (unsigned VirtReg = PhysRegState[Alias]) { case regDisabled: break; @@ -734,10 +733,6 @@ void RAFast::handleThroughOperands(MachineInstr *MI, if (!Reg || !TargetRegisterInfo::isPhysicalRegister(Reg)) continue; DEBUG(dbgs() << "\tSetting reg " << Reg << " as used in instr\n"); UsedInInstr.set(Reg); - for (const unsigned *AS = TRI->getAliasSet(Reg); *AS; ++AS) { - DEBUG(dbgs() << "\tSetting alias reg " << *AS << " as used in instr\n"); - UsedInInstr.set(*AS); - } } // Also mark PartialDefs as used to avoid reallocation. |