Closed ehsantn closed 8 years ago
The issue about reduction is fixed.
I don't seem to recall we had optimized the allocation of rand arrays away. Which commit did it?
It is not just rand arrays. I implemented a pass after ParallelIR that removes extra allocations e132da2ecab1a27c1ab1f5d1324d80a0be577592. I can take a look.
@ninegua have you checked in your fix for reduction?
Sorry, forgot to push. Just checked in.
The problem with removing extra allocation is caused by an issue with liveness analysis since the arrays are returned as defs.
7d759b6713612d6865a0413a66b0290863105388 fixes the bug in removing extra allocation.
I added a simple example that calculates Pi. It used to work but now it's broken probably because of recent changes in reductions. Also, the allocations used to be optimized out but now they are still there.