| Title | Compiler Jump Threading | |
| Date | Monday November 02 2015, @04:31AM | |
| Author | martyb | |
| Topic | ||
| from the next-up:-jump-jiving dept. | ||
The "jump threading" compiler optimization (aka -fthread-jump) turns conditional into unconditional branches on certain paths at the expense of code size. For hardware with branch prediction, speculative execution, and prefetching, this can greatly improve performance. However, there is no scientific publication or documentation at all. The Wikipedia article is very short and incomplete.
The linked article has an illustrated treatment of common code structures and how these optimizations work.
| Links |
printed from SoylentNews, Compiler Jump Threading on 2026-04-18 01:30:12