Pass the isAntiDep argument.
authorDan Gohman <gohman@apple.com>
Mon, 24 Nov 2008 17:24:27 +0000 (17:24 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 24 Nov 2008 17:24:27 +0000 (17:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59968 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/ScheduleDAGInstrs.cpp

index 21bbfde7093cd8889948b0b3127863a9d5d2595c..31008826e2489b857db1caccbec461a737c4a6c0 100644 (file)
@@ -58,7 +58,7 @@ void ScheduleDAGInstrs::BuildSchedUnits() {
         SUnit *&Def = Defs[*Alias];
         if (Def && Def != SU)
           Def->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false,
-                       /*PhyReg=*/*Alias, Cost);
+                       /*PhyReg=*/*Alias, Cost, /*isAntiDep=*/MO.isUse());
       }
 
       if (MO.isDef()) {