Reference:
A gentle introduction to jump threading optimizationshttps://developers.redhat.com/blog/2019/03/13/intro-jump-threading-optimizations
cmove:
https://stackoverflow.com/questions/30150274/purpose-of-cmove-instruction-in-x86-assembly
example 2
to
example 3
to
Code duplication is the key for the optimization trade-off.
gcc options:
- --param max-fsm-paths-insns=500
- --param max-fsm-thread-length
- -fno-thread-jumps
- -fdump-tree-all-details -O2
code in action
example 1
to
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.