1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00

Don't attempt trivial coalescing for sub-register copies.

Patch by Krister Wombell!

llvm-svn: 119791
This commit is contained in:
Jakob Stoklund Olesen 2010-11-19 05:45:24 +00:00
parent c8ac0c3c97
commit e3f7aad5c5

View File

@ -466,6 +466,10 @@ unsigned RALinScan::attemptTrivialCoalescing(LiveInterval &cur, unsigned Reg) {
CandReg = CopyMI->getOperand(0).getReg();
else
return Reg;
// If the target of the copy is a sub-register then don't coalesce.
if(CopyMI->getOperand(0).getSubReg())
return Reg;
}
if (TargetRegisterInfo::isVirtualRegister(CandReg)) {