Which of the following is a global optimization technique?
Which of the following is a global optimization technique?
Answer: C. Loop invariant code motion — Constant folding & dead code elimination → local optimizations Strength reduction → can be both local/global depending on scope Loop invariant code motion →…
- A.
Constant folding
- B.
Dead code elimination
- C.
Loop invariant code motion
- 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).
Loading lesson…