Expand LoopNestAnalysis to return the full list of instructions that cause a loop nest to be imperfect. This is useful for other passes to know if they should continue for in the inner loops.
Added New function getInterveningInstructions
that returns a small vector with the instructions that prevent a loop for being perfect. Also added a couple of helper functions to reduce code duplication.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/Analysis/LoopNestAnalysis.h | ||
---|---|---|
37 | Why is this needed? | |
llvm/lib/Analysis/LoopNestAnalysis.cpp | ||
53 | clang-format the lines you changed. | |
92 | no braces needed for single statement block, | |
107 | return (analyzeLoopNestForPerfectNest(OuterLoop,InnerLoop,SE) == PerfectLoopNest); | |
152 | Variable name starts with uppercase. |
llvm/include/llvm/Analysis/LoopNestAnalysis.h | ||
---|---|---|
55 | from being Perfect => from being perfect. |
This comment was removed by madanial.
Why is this needed?