Browse Source

Remove outdated comment. The `PickExitPoint` heuristic is no longer using "amount of code" but the IL block order.

pull/2081/head
Daniel Grunwald 5 years ago
parent
commit
fc51dd17a5
  1. 5
      ICSharpCode.Decompiler/IL/ControlFlow/LoopDetection.cs

5
ICSharpCode.Decompiler/IL/ControlFlow/LoopDetection.cs

@ -200,11 +200,6 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow @@ -200,11 +200,6 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow
/// * use only a single exit point if at all possible
/// * minimize the amount of code in the in-loop partition
/// (thus: maximize the amount of code in the out-of-loop partition)
/// "amount of code" could be measured as:
/// * number of basic blocks
/// * number of instructions directly in those basic blocks (~= number of statements)
/// * number of instructions in those basic blocks (~= number of expressions)
/// (we currently use the number of statements)
///
/// Observations:
/// * If a node is in-loop, so are all its ancestors in the dominator tree (up to the loop entry point)

Loading…
Cancel
Save