mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 00:17:32 +00:00
Simplify by using isFullCopy().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139019 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d199aa012b
commit
8040e06434
@ -948,9 +948,7 @@ RegisterCoalescer::UpdateRegDefsUses(const CoalescerPair &CP) {
|
||||
// A PhysReg copy that won't be coalesced can perhaps be rematerialized
|
||||
// instead.
|
||||
if (DstIsPhys) {
|
||||
if (UseMI->isCopy() &&
|
||||
!UseMI->getOperand(1).getSubReg() &&
|
||||
!UseMI->getOperand(0).getSubReg() &&
|
||||
if (UseMI->isFullCopy() &&
|
||||
UseMI->getOperand(1).getReg() == SrcReg &&
|
||||
UseMI->getOperand(0).getReg() != SrcReg &&
|
||||
UseMI->getOperand(0).getReg() != DstReg &&
|
||||
|
Loading…
Reference in New Issue
Block a user