Use-define Chain - Method of Building A use-def (or ud) Chain

Method of Building A use-def (or ud) Chain

  1. Set definitions in statement s(0)
  2. For each i in, find live definitions that have use in statement s(i)
  3. Make a link among definitions and uses
  4. Set the statement s(i), as definition statement
  5. Kill previous definitions

With this algorithm, two things are accomplished:

  1. A directed acyclic graph (DAG) is created on the variable uses and definitions. The DAG specifies a data dependency among assignment statements, as well as a partial order (therefore parallelism among statements).
  2. When statement s(i) is reached, there is a list of live variable assignments. If only one assignment is live, for example, constant propagation might be used.

Read more about this topic:  Use-define Chain

Famous quotes containing the words method, building and/or chain:

    If all feeling for grace and beauty were not extinguished in the mass of mankind at the actual moment, such a method of locomotion as cycling could never have found acceptance; no man or woman with the slightest aesthetic sense could assume the ludicrous position necessary for it.
    Ouida [Marie Louise De La Ramée] (1839–1908)

    The chemistry of dissatisfaction is as the chemistry of some marvelously potent tar. In it are the building stones of explosives, stimulants, poisons, opiates, perfumes and stenches.
    Eric Hoffer (1902–1983)

    Man ... cannot learn to forget, but hangs on the past: however far or fast he runs, that chain runs with him.
    Friedrich Nietzsche (1844–1900)