forked from OSchip/llvm-project
Set the isAntiDep flag in the MachineInstr scheduler.
llvm-svn: 59787
This commit is contained in:
parent
87c175e629
commit
d7d1fd7eb7
|
@ -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