scalehls icon indicating copy to clipboard operation
scalehls copied to clipboard

Simplify expression pass

Open hanchenye opened this issue 4 years ago • 1 comments

Based on my experience, MLIR does not have passes to simplify things like this:

%cst_1 = 1.0 : f32
%1 = mulf %0, %cst_1 : f32

In this case, all uses of %1 can be replaced by %0. This simplification pass is meaningful for us because this is automatically simplified in Vivado HLS, which makes our estimator wrongly take some redundant mulf or other operations into consideration.

hanchenye avatar Dec 30 '20 20:12 hanchenye