C2: Refactor PhaseIdealLoop::is_counted_loop()

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 25
    • Component/s: hotspot

      Currently bool PhaseIdealLoop::is_counted_loop(), despite what the name suggests, also converts the loop, making calling it non-idempotent.

      As discussed during the review of JDK-8336759 [0], this should be refactored into at least two functions. This issue is created as a dependency of JDK-8336759 due to its complexity and should be reviewed separately.

      [0] https://github.com/openjdk/jdk/pull/22449#issuecomment-2520215899

            Assignee:
            Kangcheng Xu
            Reporter:
            Kangcheng Xu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: