Loop-invariant code motion: Difference between revisions

Content deleted Content added
top: I don't see why this link text should be displayed using boldface.
top: Fixed grammar: incorrect use of which vs that
Tags: Mobile edit Mobile app edit Android app edit
Line 2:
{{More citations needed|date=January 2021}}
 
In [[computer programming]], [[loop-invariant code]] consists of statements or expressions (in an [[imperative programming|imperative]] [[programming language]]) whichthat 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]] whichthat performs this movement automatically.
 
==Example==