Content deleted Content added
Replaced {{unreferenced}} with {{more citations needed}} and other General fixes, removed stub tag |
No edit summary Tags: Reverted Mobile edit Mobile web edit |
||
Line 1:
{{More citations needed|date=January 2021}}
In [[computer programming]], '''[[loop-invariant code]]''' consists of statements or expressions (in an [[imperative programming|imperative]] [[programming language]]) which 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]] which performs this movement automatically.
==Example==
|