mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
RegisterCoalescer: implicit phsreg uses are fine when rematerializing
The target hooks should have already checked them. This change is necessary to enable the remateriailzation on R600. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235673 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b638e142b4
commit
37f93d4cbf
@ -963,8 +963,8 @@ bool RegisterCoalescer::reMaterializeTrivialDef(const CoalescerPair &CP,
|
||||
for (unsigned i = NewMI->getDesc().getNumOperands(),
|
||||
e = NewMI->getNumOperands(); i != e; ++i) {
|
||||
MachineOperand &MO = NewMI->getOperand(i);
|
||||
if (MO.isReg()) {
|
||||
assert(MO.isDef() && MO.isImplicit() && MO.isDead() &&
|
||||
if (MO.isReg() && MO.isDef()) {
|
||||
assert(MO.isImplicit() && MO.isDead() &&
|
||||
TargetRegisterInfo::isPhysicalRegister(MO.getReg()));
|
||||
NewMIImplDefs.push_back(MO.getReg());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user