Loop-invariant code motion
Type of compiler optimization / From Wikipedia, the free encyclopedia
Dear Wikiwand AI, let's keep it short by simply answering these key questions:
Can you list the top facts and stats about Loop-invariant code motion?
Summarize this article for a 10 year old
SHOW ALL QUESTIONS
In computer programming, loop-invariant code consists of statements or expressions (in an imperative programming language) that can be moved outside the body of a loop without affecting the semantics of the program. Loop-invariant code motion (also called hoisting or scalar promotion) is a compiler optimization that performs this movement automatically.
This article needs additional citations for verification. (January 2021) |