Machine-translated by Google. Questions are authored in English.
Top

Discussion

Copy propagation replaces uses of x after an assignment x = y by

  • A.a fresh temporary holding the value of y
  • B.nothing at all, since the use can simply be deleted
  • C.uses of y, provided neither has changed in between
  • D.the constant that y is known to hold at that point

Answer: C

The copy itself often becomes dead once every use has been rewritten. Copy propagation followed by dead code elimination is a standard pairing. Neither pass on its own achieves much, but together they clean up a great deal.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.