[llvm-dev] -loop-extract pass
Florian Hahn via llvm-dev
llvm-dev at lists.llvm.org
Mon Aug 17 02:39:06 PDT 2020
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev