[llvm-dev] Inner Loop extraction in LLVM
iulian brumar via llvm-dev
llvm-dev at lists.llvm.org
Wed Jul 1 14:23:15 PDT 2020
Hello everyone,
Quick question about loop extraction in llvm. I've been using the LoopExtractor pass in llvm/lib/Transforms/IPO/LoopExtractor.cpp to extract top level loops from programs.
I'm wondering if extracting inner-most loops is any more complex than using the BlockExtractor pass in llvm/lib/Transforms/IPO/BlockExtractor.cpp and making sure that the basic blocks in the extracted region are single entry-single exit. Would there be any fundamental differences wrt what LoopExtractor is doing for top-level loops?
Thanks,
Iulian
More information about the llvm-dev
mailing list