Skip to content

Commit 44728a9

Browse files
committed
fixed OrderingOps mirror for M7
1 parent 61477f3 commit 44728a9

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

src/common/OrderingOps.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ trait OrderingOpsExp extends OrderingOps with VariablesExp {
7575
case e@OrderingGT(a,b) => ordering_gt(f(a),f(b))(e.aev,e.mev,pos)
7676
case e@OrderingGTEQ(a,b) => ordering_gteq(f(a),f(b))(e.aev,e.mev,pos)
7777
case e@OrderingEquiv(a,b) => ordering_equiv(f(a),f(b))(e.aev,e.mev,pos)
78-
case e@OrderingMax(a,b) => ordering_max(f(a),f(b))(e.aev,e.mev,pos)
79-
case e@OrderingMin(a,b) => ordering_min(f(a),f(b))(e.aev,e.mev,pos)
78+
case e@OrderingMax(a,b) => ordering_max(f(a),f(b))(e.aev.asInstanceOf[Ordering[A]],mtype(e.mev),pos)
79+
case e@OrderingMin(a,b) => ordering_min(f(a),f(b))(e.aev.asInstanceOf[Ordering[A]],mtype(e.mev),pos)
8080
case _ => super.mirror(e, f)
8181
}).asInstanceOf[Exp[A]]
8282
}

test-out/epfl/test11-stencil0.check

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ x1
2525
End of Generated Code
2626
*******************************************/
2727

28-
<stdin>:18: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
29-
x12
30-
^
31-
one warning found
3228
compilation: ok
3329
8.0
3430
12.0

test-out/epfl/test11-stencil2a.check

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ x2
2828
End of Generated Code
2929
*******************************************/
3030

31-
<stdin>:21: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
32-
x15
33-
^
34-
one warning found
3531
compilation: ok
3632
0.0
3733
0.8800000000000001

test-out/epfl/test11-stencil3a.check

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ x2
4242
End of Generated Code
4343
*******************************************/
4444

45-
<stdin>:35: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
46-
x29
47-
^
48-
one warning found
4945
compilation: ok
5046
0.0
5147
0.0

0 commit comments

Comments
 (0)