I was looking into the issue posted by Alga and Xiangyi here: https://github.com/cornell-zhang/heterocl-docs/issues/44. It turned out the direct cause is that ir_pass.Simplify not able to handle the program with bit-slicing correctly.
The program can be successfully lowered and passed to CodeGen if ir_pass.Simplify is commented out. I have not got a chance to figure out the root cause.
I was looking into the issue posted by Alga and Xiangyi here: https://github.com/cornell-zhang/heterocl-docs/issues/44. It turned out the direct cause is that
ir_pass.Simplify
not able to handle the program with bit-slicing correctly.The program can be successfully lowered and passed to CodeGen if
ir_pass.Simplify
is commented out. I have not got a chance to figure out the root cause.