Set the isAntiDep flag in the MachineInstr scheduler.

llvm-svn: 59787
This commit is contained in:
Dan Gohman 2008-11-21 02:38:21 +00:00
parent 87c175e629
commit d7d1fd7eb7
1 changed files with 1 additions and 1 deletions

View File

@ -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)