[PATCH] D75013: [LoopTerminology] Rotated Loops

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 22 18:17:34 PST 2020


Meinersbur added a comment.

IMHO



================
Comment at: llvm/docs/LoopTerminology.rst:161-163
+Loops are rotated by the loop-rotate pass. The purpose
+of this transformation is to convert loops into
+do/while style loops. Example:
----------------
Converting to do/while style is a description of loop-rotation. One of the purposes is to allow hoisting invariant loads into the preheader. In non-rotated loops, a load in the preaheader would be executed even if the memory was never accessed in the original loop.


================
Comment at: llvm/docs/LoopTerminology.rst:197
+a single successor, which implies that the loop latch
+is also an exiting block. It is done by the `loop-rotate`
+pass.
----------------
The LoopRotate pass was already mentioned at the beginning. Maybe you could also link to https://llvm.org/docs/Passes.html#loop-rotate-rotate-loops.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75013/new/

https://reviews.llvm.org/D75013





More information about the llvm-commits mailing list