Open mshinwell opened 5 months ago
@chambart suggests introducing a Select
primitive, that could be used instead of a switch where all branches go to the same single-argument continuation. This primitive could then be compiled into branch-less code if it has the right shape (either in Simplify or in To_cmm).
It would be nice to compile all of the following so they don't involve branches: