Application To Strength Reduction
A common compiler optimization is to recognize the existence of induction variables and replace them with simpler computations; for example, the code above could be rewritten by the compiler as follows, on the assumption that the addition of a constant will be cheaper than a multiplication.
j = -17; for (i = 0; i < 10; ++i) { j = j + 17; }This optimization is a special case of strength reduction.
Read more about this topic: Induction Variable
Famous quotes containing the words application, strength and/or reduction:
“The main object of a revolution is the liberation of man ... not the interpretation and application of some transcendental ideology.”
—Jean Genet (19101986)
“The same strength of character which helps a man resist love, helps to make it more violent and lasting too. People of unsettled minds are always driven about with passions, but never absolutely filled with any.”
—François, Duc De La Rochefoucauld (16131680)
“The reduction of nuclear arsenals and the removal of the threat of worldwide nuclear destruction is a measure, in my judgment, of the power and strength of a great nation.”
—Jimmy Carter (James Earl Carter, Jr.)