diff options
author | Dan Gohman <gohman@apple.com> | 2008-11-21 02:38:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-11-21 02:38:21 +0000 |
commit | f6b7a47d5d6e2703591b95b10b2c5be5b5fd09cd (patch) | |
tree | b81ee87a5da0f4b4f4b52c77d89f909201dc75f1 /lib | |
parent | da4948ac8cbc307739e353e64c19a935de1e0230 (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/ScheduleDAGInstrs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp index ec8fc66a3e..c83af095d0 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) |