From: bdemsky Date: Fri, 25 Mar 2011 09:25:05 +0000 (+0000) Subject: changes X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fc8d36a0580544262265a9074f93f6444192a66b;p=IRC.git changes --- diff --git a/Robust/src/IR/Flat/RuntimeConflictResolver.java b/Robust/src/IR/Flat/RuntimeConflictResolver.java index 4c7a8439..3bbbcaa8 100644 --- a/Robust/src/IR/Flat/RuntimeConflictResolver.java +++ b/Robust/src/IR/Flat/RuntimeConflictResolver.java @@ -102,6 +102,10 @@ public class RuntimeConflictResolver { int weakID = smfe.getWeaklyConnectedGroupID(taskOrStallSite); String blockName; + //No need generate code for empty traverser + if (smfe.isEmpty()) + return; + if( isStallSite ) { blockName = taskOrStallSite.toString(); processedStallSites.put(taskOrStallSite, var); @@ -115,9 +119,7 @@ public class RuntimeConflictResolver { blockName = task.getPrettyIdentifier(); } - //No need generate code for empty traverser - if (smfe.isEmpty()) - return; + String methodName = "void traverse___" + inVar + removeInvalidChars(blockName) + "___(void * InVar, "; int index = -1;