From: bdemsky Date: Mon, 4 Feb 2008 09:44:16 +0000 (+0000) Subject: fix bug alokika found... X-Git-Tag: preEdgeChange~289 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6ddc2139730e9683f2407073e4ef0528daee01bf;p=IRC.git fix bug alokika found... --- diff --git a/Robust/src/IR/Flat/BuildCode.java b/Robust/src/IR/Flat/BuildCode.java index 9657fd0e..347dd4f2 100644 --- a/Robust/src/IR/Flat/BuildCode.java +++ b/Robust/src/IR/Flat/BuildCode.java @@ -2106,7 +2106,12 @@ public class BuildCode { if (state.DSM && locality.getAtomic(lb).get(fsen).intValue()>0) { Integer statussrc=locality.getNodePreTempInfo(lb,fsen).get(fsen.getSrc()); + Integer statusdst=locality.getNodePreTempInfo(lb,fsen).get(fsen.getDst()); boolean srcglobal=statussrc==LocalityAnalysis.GLOBAL; + boolean dstglobal=statusdst==LocalityAnalysis.GLOBAL; + if (dstglobal) { + output.println("*((unsigned int *)&("+generateTemp(fm,fsen.getDst(),lb)+"->___localcopy___))|=DIRTY;"); + } if (srcglobal) { output.println("{"); String src=generateTemp(fm, fsen.getSrc(), lb);