Vector optimizations #140
suarezvictor
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I propose a way of otimizing some code on Simulation.cs
Currently, there's this code at line 326
the problem is that gnereated code is complex to optimze, see results of that:
It also unfortunately seems to generate a lot of branches
I think it would be better to incorporate in generated code an explicit for instruction (instead of generating a list of instructions), so the compiler can apply some loop optimizations.
Code generated should be similar to that (produces same function):
This way the compiler can unroll the loop, apply vectorization and the like optimizations. A preordering of the array would also be useful.
Beta Was this translation helpful? Give feedback.
All reactions