mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-12 06:31:14 +00:00
Remat uncoalescable COPY instrs
llvm-svn: 108010
This commit is contained in:
parent
b591b3b48d
commit
c99c720728
@ -781,6 +781,17 @@ SimpleRegisterCoalescing::UpdateRegDefsUses(const CoalescerPair &CP) {
|
||||
ReMaterializeTrivialDef(li_->getInterval(SrcReg), CopyDstReg, 0,
|
||||
UseMI))
|
||||
continue;
|
||||
|
||||
if (UseMI->isCopy() &&
|
||||
!UseMI->getOperand(1).getSubReg() &&
|
||||
!UseMI->getOperand(0).getSubReg() &&
|
||||
UseMI->getOperand(1).getReg() == SrcReg &&
|
||||
UseMI->getOperand(0).getReg() != SrcReg &&
|
||||
UseMI->getOperand(0).getReg() != DstReg &&
|
||||
!JoinedCopies.count(UseMI) &&
|
||||
ReMaterializeTrivialDef(li_->getInterval(SrcReg),
|
||||
UseMI->getOperand(0).getReg(), 0, UseMI))
|
||||
continue;
|
||||
}
|
||||
|
||||
SmallVector<unsigned,8> Ops;
|
||||
|
Loading…
x
Reference in New Issue
Block a user