kumasento / polsca

Polyhedral High-Level Synthesis in MLIR
MIT License
29 stars 7 forks source link

Added a 'dangerously' implemented fold-if #30

Closed kumasento closed 3 years ago

kumasento commented 3 years ago

-fold-if can turn affine.if that has a single block in the body into an equivalent version that uses select.

Note that this is a very early-stage implementation and there can be caveats.