Can someone explain what *-loop-extract* pass does with an example? Thanks, Harish C -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200817/8b4651b4/attachment.html>
Hi,> On Aug 17, 2020, at 10:01, Harish via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Can someone explain what -loop-extract pass does with an example?Loop-extract tries to extract loops into separate functions. Some examples can be found in the unit tests, for example https://github.com/llvm/llvm-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. Cheers, Florian -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200817/e8afc26b/attachment.html>
Thanks, I'll check it out. On Mon, Aug 17, 2020 at 3:09 PM Florian Hahn <florian_hahn at apple.com> wrote:> Hi, > > > On Aug 17, 2020, at 10:01, Harish via llvm-dev <llvm-dev at lists.llvm.org> > wrote: > > Can someone explain what *-loop-extract* pass does with an example? > > > Loop-extract tries to extract loops into separate functions. > > Some examples can be found in the unit tests, for example > https://github.com/llvm/llvm-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. > > Cheers, > Florian > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200817/56525e2b/attachment.html>