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 | d7d1fd7eb7411d5c9ba6ec7c2d12dde6be2b31e2 (patch) | |
| tree | 292628b5cb82a4807515a7b2843ccc04e9f69b7e /llvm/lib/CodeGen | |
| parent | 87c175e629788b02ef3e2ed7b3f0216790da19b8 (diff) | |
| download | bcm5719-llvm-d7d1fd7eb7411d5c9ba6ec7c2d12dde6be2b31e2.tar.gz bcm5719-llvm-d7d1fd7eb7411d5c9ba6ec7c2d12dde6be2b31e2.zip | |
Set the isAntiDep flag in the MachineInstr scheduler.
llvm-svn: 59787
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/ScheduleDAGInstrs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp index ec8fc66a3ee..c83af095d08 100644 --- a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp +++ b/llvm/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) |

