<div dir="ltr">Thanks, I'll check it out. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 17, 2020 at 3:09 PM Florian Hahn <<a href="mailto:florian_hahn@apple.com">florian_hahn@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi,<div><br><div><br><blockquote type="cite"><div>On Aug 17, 2020, at 10:01, Harish via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br><div><div dir="ltr"><div>Can someone explain what <i><b>-loop-extract</b></i>  pass does with an example?</div></div></div></blockquote></div><div><br></div><span>Loop-extract tries to extract loops into separate functions. </span></div><div><span><br></span></div><div><span>Some examples can be found in the unit tests, for example <a href="https://github.com/llvm/llvm-" target="_blank">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></span><span><br></span><div>Cheers,</div><div>Florian</div><br></div></div></blockquote></div>