From: bdemsky Date: Thu, 2 Jul 2009 22:30:21 +0000 (+0000) Subject: changes X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=848fafe8a7a6a1f127d0e55369607cd493274cdf;p=IRC.git changes --- diff --git a/Robust/src/Analysis/Locality/DelayComputation.java b/Robust/src/Analysis/Locality/DelayComputation.java index 09ecce0e..e72a4a39 100644 --- a/Robust/src/Analysis/Locality/DelayComputation.java +++ b/Robust/src/Analysis/Locality/DelayComputation.java @@ -66,10 +66,19 @@ public class DelayComputation { otherset.removeAll(notreadyset); otherset.removeAll(cannotdelay); if (state.MINIMIZE) { - notreadyset.addAll(otherset); - otherset=new HashSet(); + Hashtable atomicmap=locality.getAtomic(lb); + for(Iterator fnit=otherset.iterator();fnit.hasNext();) { + FlatNode fn=fnit.next(); + if (atomicmap.get(fn).intValue()>0&& + fn.kind()!=FKind.FlatAtomicEnterNode&& + fn.kind()!=FKind.FlatGlobalConvNode) { + //remove non-atomic flatnodes + fnit.remove(); + notreadyset.add(fn); + } + } } - + notreadymap.put(lb, notreadyset); othermap.put(lb, otherset); } @@ -302,7 +311,6 @@ public class DelayComputation { FlatNode fn2=fnit2.next(); if (otherset.contains(fn2)||cannotdelayset.contains(fn2)) { unionset.add(fn2); - System.out.println("ADDA"+fn2); livenodes.add(fn2); } } @@ -349,7 +357,6 @@ public class DelayComputation { for(int i=0;i