kumasento/polymer

Reduce redundant load operations in generated MLIR code

kumasento opened this issue · 1 comments

https://github.com/kumasento/polymer/blob/master/test/polymer-opt/InvariantScopTransform/arith.mlir

In this test case, there are several load operations being duplicated. We should remove them by adding a new pass that assumes load operations are non-volatile.

The latest algorithm in impact should potentially fix this problem.