<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 17, 2020, at 10:01, Harish via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Can someone explain what <i class=""><b class="">-loop-extract</b></i>  pass does with an example?</div></div></div></blockquote></div><div><br class=""></div><span class="">Loop-extract tries to extract loops into separate functions. </span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">Some examples can be found in the unit tests, for example <a href="https://github.com/llvm/llvm-" class="">https://github.com/llvm/llvm-</a>project/blob/master/llvm/test/Transforms/CodeExtractor/LoopExtractor.ll where loop.0 and loop.1 are extracted into the new test3.loop.0 and test3.loop.1 functions. <br class=""></span><span class=""><br class=""></span><div>Cheers,</div><div>Florian</div><br class=""></div></body></html>