Optimization Methods 3/3
6) Dead code elimination
trace
:=
false;
if trace then begin
writeln(…);
…
end;
nothing
8/43
•
Dead code:
a)
Never executed
b)
Does nothing useful
ad
a)
x
:=
x;
nothing
ad
b)