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:
Dan Gohman 2008-11-21 02:38:21 +00:00
parent da4948ac8c
commit f6b7a47d5d

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)