We add a ScopInliner pass which inlines functions based on a simple heuristic:
Let g call f.
If we can model all of f as a Scop, we inline f into g.
Paths
| Differential D36832
[Polly] [ScopInliner] Implement basic scop inlining pass. ClosedPublic Authored by bollu on Aug 17 2017, 8:06 AM.
Details
Summary We add a ScopInliner pass which inlines functions based on a simple heuristic: Let g call f.
Diff Detail
Event Timeline
Comment Actions
Comment Actions Thank you!
This revision is now accepted and ready to land.Aug 17 2017, 2:45 PM Closed by commit rL311126: [ScopInliner] Add a simple Scop-based inliner to polly. (authored by bollu). · Explain WhyAug 17 2017, 2:58 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 111572 polly/trunk/include/polly/LinkAllPasses.h
polly/trunk/include/polly/ScopDetection.h
polly/trunk/lib/Analysis/ScopDetection.cpp
polly/trunk/lib/CMakeLists.txt
polly/trunk/lib/Support/RegisterPasses.cpp
polly/trunk/lib/Transform/ScopInliner.cpp
polly/trunk/test/ScopInliner/ignore-declares.ll
polly/trunk/test/ScopInliner/invariant-load-func.ll
polly/trunk/test/ScopInliner/simple-inline-loop.ll
|