From: Dan Gohman Date: Fri, 21 Nov 2008 02:38:21 +0000 (+0000) Subject: Set the isAntiDep flag in the MachineInstr scheduler. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f6b7a47d5d6e2703591b95b10b2c5be5b5fd09cd;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp index ec8fc66a3ee..c83af095d08 100644 --- a/lib/CodeGen/ScheduleDAGInstrs.cpp +++ b/lib/CodeGen/ScheduleDAGInstrs.cpp @@ -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)