mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Revert "r223440 - Consider subregs when calling MI::registerDefIsDead for phys deps"
Reverting this because, while it fixes the problem in the reduced test case, it does not fix the problem in the full test case from the bug report. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223442 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -310,15 +310,9 @@ void ScheduleDAGInstrs::addPhysRegDeps(SUnit *SU, unsigned OperIdx) {
|
||||
SUnit *DefSU = I->SU;
|
||||
if (DefSU == &ExitSU)
|
||||
continue;
|
||||
auto IsDefDead = [this](SUnit *DefSU, unsigned Reg) {
|
||||
for (MCSubRegIterator SR(Reg, TRI, true); SR.isValid(); ++SR)
|
||||
if (!DefSU->getInstr()->registerDefIsDead(*SR))
|
||||
return false;
|
||||
return true;
|
||||
};
|
||||
if (DefSU != SU &&
|
||||
(Kind != SDep::Output || !MO.isDead() ||
|
||||
!IsDefDead(DefSU, *Alias))) {
|
||||
!DefSU->getInstr()->registerDefIsDead(*Alias))) {
|
||||
if (Kind == SDep::Anti)
|
||||
DefSU->addPred(SDep(SU, Kind, /*Reg=*/*Alias));
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user