The kind of modification you are proposing are probably best done by modifying the Julia compiler. As an avenue for experimentation you may start with something small – like adding an @llvminline that is similar to @noinline to see if you can get the benefits you want, before doing the bigger step of implementing this in Julia proper.
1 Like