Jump to content

Jump threading

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Erik9bot (talk | contribs) at 23:28, 3 July 2009 (add Category:Articles lacking sources (Erik9bot)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computing, jump threading is a compiler optimization. In this pass, conditional jumps in the code that branch to identical or inverse tests are detected, and can be "threaded" through a second conditional test. This is easily done in a single pass through the program, following acyclic chained jumps until you arrive at a fixed point.