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:

    The method of scientific investigation is nothing but the expression of the necessary mode of working of the human mind. It is simply the mode in which all phenomena are reasoned about, rendered precise and exact.
    Thomas Henry Huxley (1825–95)

    Little Bill Daggett: I don’t deserve this. To die like this. I was building a house.
    Will Munny: Deserve’s got nothing to do with it.
    David Webb Peoples, screenwriter. Little Bill Daggett (Gene Hackman)

    Oft, in the stilly night, Ere Slumber’s chain has bound me, Fond Memory brings the light Of other days around me.
    Thomas Moore (1779–1852)