Multiple choice

Which of the following structure-preserving transformations moves the evaluation of expressions from one part of the program to another part of the program?

  1. Code motion

  2. Strength reduction

  3. Variable propagation

  4. Interchanging of statements

  5. Dead-code elimination

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Code motion moves the evaluation of expressions from one part of the program to another part of the program.