mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Don't attempt trivial coalescing for sub-register copies.
Patch by Krister Wombell! llvm-svn: 119791
This commit is contained in:
parent
c8ac0c3c97
commit
e3f7aad5c5
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user