Application To Reduce Register Pressure
In some cases, it is possible to reverse this optimization in order to remove an induction variable from the code entirely. For example:
extern int sum; int foo(int n) { int i, j; j = 5; for (i=0; i < n; ++i) { j += 2; sum += j; } return sum; }This function's loop has two induction variables: i and j. Either one can be rewritten as a linear function of the other; therefore, the compiler may optimize this code as if it had been written
Read more about this topic: Induction Variable
Famous quotes containing the words application to, application, reduce, register and/or pressure:
“Five oclock tea is a phrase our rude forefathers, even of the last generation, would scarcely have understood, so completely is it a thing of to-day; and yet, so rapid is the March of the Mind, it has already risen into a national institution, and rivals, in its universal application to all ranks and ages, and as a specific for all the ills that flesh is heir to, the glorious Magna Charta.”
—Lewis Carroll [Charles Lutwidge Dodgson] (18321898)
“It would be disingenuous, however, not to point out that some things are considered as morally certain, that is, as having sufficient certainty for application to ordinary life, even though they may be uncertain in relation to the absolute power of God.”
—René Descartes (15961650)
“The influx of women into paid work and her increased power raise a womans aspirations and hopes for equal treatment at home. Her lower wage and status at work and the threat of divorce reduce what she presses for and actually expects.”
—Arlie Hochschild (20th century)
“Never to walk from the stations lamps and laurels
Carrying my fathers lean old leather case
Crumbling like the register at the hotel....”
—Philip Larkin (19221986)
“He who is of a calm and happy nature will hardly feel the pressure of age, but to him who is of an opposite disposition youth and age are equally a burden.”
—Plato (c. 427347 B.C.)