Which of the following is a global optimization technique?

Which of the following is a global optimization technique?

Answer: C. Loop invariant code motionConstant folding & dead code elimination → local optimizations Strength reduction → can be both local/global depending on scope Loop invariant code motion →…

  1. A.

    Constant folding

  2. B.

    Dead code elimination

  3. C.

    Loop invariant code motion

  4. D.

    Strength reduction

Attempted by 102 students.

Show answer & explanation

Correct answer: C

Constant folding & dead code elimination → local optimizations Strength reduction → can be both local/global depending on scope Loop invariant code motion → clearly global (requires analyzing loop structure across blocks).

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…