mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-30 16:34:03 +00:00
Remat uncoalescable COPY instrs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108010 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6c7d3a16b3
commit
90fc0f4443
@ -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…
Reference in New Issue
Block a user