Jump to content

Jump threading

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Slashme (talk | contribs) at 09:59, 18 June 2008 (Reverted 1 edit by 159.226.43.43 identified as vandalism to last revision by CesarB. (TW)). 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.