summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-11-21 02:38:21 +0000
committerDan Gohman <gohman@apple.com>2008-11-21 02:38:21 +0000
commitd7d1fd7eb7411d5c9ba6ec7c2d12dde6be2b31e2 (patch)
tree292628b5cb82a4807515a7b2843ccc04e9f69b7e /llvm/lib/CodeGen
parent87c175e629788b02ef3e2ed7b3f0216790da19b8 (diff)
downloadbcm5719-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.cpp2
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)
OpenPOWER on IntegriCloud