@@ -1485,7 +1485,7 @@ def test_no_fission_as_illegal(self, exprs):
14851485 (('Eq(ti0[x,y,z], ti0[x,y,z] + ti1[x,y,z])' ,
14861486 'Eq(ti1[x,y,z], ti3[x,y,z])' ,
14871487 'Eq(ti3[x,y,z], ti1[x,y,z+1] + 1.)' ),
1488- '+++++ ' , ['xyz' , 'xyz' , 'xyz' ], 'xyzzz ' ),
1488+ '++++' , ['xyz' , 'xyz' ], 'xyzz ' ),
14891489 # 1) WAR 1->2, 2->3
14901490 (('Eq(ti0[x,y,z], ti0[x,y,z] + ti1[x,y,z])' ,
14911491 'Eq(ti1[x,y,z], ti0[x,y,z+1])' ,
@@ -1533,7 +1533,7 @@ def test_no_fission_as_illegal(self, exprs):
15331533 (('Eq(tu[t,x,y,z], tu[t,x,y,z] + tv[t,x,y,z])' ,
15341534 'Eq(tv[t,x,y,z], tu[t,x,y,z-2])' ,
15351535 'Eq(tw[t,x,y,z], tv[t,x,y+1,z] + 1.)' ),
1536- '++++++++ ' , ['txyz' , 'txyz' , 'txyz' ], 'txyzyzyz ' ),
1536+ '+++++++' , ['txyz' , 'txyz' , 'txyz' ], 'txyzzyz ' ),
15371537 # 10) WAR 1->2; WAW 1->3
15381538 (('Eq(tu[t-1,x,y,z], tu[t,x,y,z] + tv[t,x,y,z])' ,
15391539 'Eq(tv[t,x,y,z], tu[t,x,y,z+2])' ,
@@ -1593,6 +1593,15 @@ def test_no_fission_as_illegal(self, exprs):
15931593 'Eq(tu[t+1,xi,yi,zi], tv[t+1,xi,yi,zi] + tv[t+1,xi+1,yi,zi])' ,
15941594 'Eq(tw[t+1,x,y,z], tv[t+1,x,y,z] + tv[t+1,x+1,y,z])' ),
15951595 '++++++++++' , ['txyz' , 'txyz' , 'txyz' ], 'txyzxyzxyz' ),
1596+ # 20) RAW 1->3, WAR 2->3; expected=2
1597+ # It's important the split occurs after the second equation, since the
1598+ # first two can safely be fused together (previously, instead,
1599+ # due to an issue in `break_for_parallelism`, the eqns were split over
1600+ # three loop nests)
1601+ (('Eq(tu[t+1,x,y,z], tu[t,x,y,z] + tu[t,x+1,y,z])' ,
1602+ 'Eq(tv[t+1,x,y,z], tv[t,x,y,z] + 1)' ,
1603+ 'Eq(tw[t+1,x,y,z], tu[t+1,x+1,y,z] + tw[t,x+1,y,z] + tv[t+1,x+1,y,z])' ),
1604+ '+++++++' , ['txyz' , 'txyz' ], 'txyzxyz' ),
15961605 ])
15971606 def test_consistency_anti_dependences (self , exprs , directions , expected , visit ):
15981607 """
0 commit comments