As pointed out by reviewers, my own mental model here was wrong. So, let's try revising the definition to make that more clear.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
docs/LoopTerminology.rst | ||
---|---|---|
17 ↗ | (On Diff #211817) |
(It's not a single cycle.) |
31 ↗ | (On Diff #211817) | A sub-loop is sth. different. A loop can be made up of multiple cycles without having sub-loops. h: if (...) goto a; else goto b; a: if (...) goto h; else goto end; b: if (...) goto h; else goto end; two cycles: h -> a -> h and h -> b -> h, neither containing the other one. |
I think I've reformulated this to incorporate the review comments, let me know what you think.
minor comments and corrections, LGTM otherwise. Thx.
docs/LoopTerminology.rst | ||
---|---|---|
17 ↗ | (On Diff #211817) | My bad, I missed the "maximal" part:
|
32 ↗ | (On Diff #212398) | Nit: "but the strongly connected component formed" |
63 ↗ | (On Diff #212398) | Nit: "(The latter is a consequence of the block being contained within an |