mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Set the isAntiDep flag in the MachineInstr scheduler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da4948ac8c
commit
f6b7a47d5d
@ -53,7 +53,7 @@ void ScheduleDAGInstrs::BuildSchedUnits() {
|
||||
// Optionally add output and anti dependences.
|
||||
if (Def && Def != SU)
|
||||
Def->addPred(SU, /*isCtrl=*/true, /*isSpecial=*/false,
|
||||
/*PhyReg=*/Reg, Cost);
|
||||
/*PhyReg=*/Reg, Cost, /*isAntiDep=*/MO.isUse());
|
||||
for (const unsigned *Alias = TRI->getAliasSet(Reg); *Alias; ++Alias) {
|
||||
SUnit *&Def = Defs[*Alias];
|
||||
if (Def && Def != SU)
|
||||
|
Loading…
Reference in New Issue
Block a user