changes
authorbdemsky <bdemsky>
Fri, 3 Jul 2009 06:18:54 +0000 (06:18 +0000)
committerbdemsky <bdemsky>
Fri, 3 Jul 2009 06:18:54 +0000 (06:18 +0000)
Robust/src/Analysis/Locality/DelayComputation.java

index e72a4a39008bac77892bf45463000946c7ba0c3d..c9c16d4e442ae1b005bdd57c74229c05d8c451f3 100644 (file)
@@ -309,7 +309,8 @@ public class DelayComputation {
          if (inpart1&&inpart2) {
            for(Iterator<FlatNode> fnit2=fnset.iterator();fnit2.hasNext();) {
              FlatNode fn2=fnit2.next();
-             if (otherset.contains(fn2)||cannotdelayset.contains(fn2)) {
+             if ((otherset.contains(fn2)||cannotdelayset.contains(fn2))&&
+                 locality.getAtomic(lb).get(fn2).intValue()>0) {
                unionset.add(fn2);
                livenodes.add(fn2);
              }
@@ -318,7 +319,7 @@ public class DelayComputation {
        }
       }
     }
-
+    
     HashSet<FlatNode> toanalyze=new HashSet<FlatNode>();
     toanalyze.add(fm);