Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8253524

C2: Refactor code that clones predicates during loop unswitching

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b18

      Backports

        Description

        During unswitching PhaseIdealLoop::create_slow_version_of_loop() calls PhaseIdealLoop::clone_predicates_to_unswitched_loop() twice, one for each loops, to clone some predicates above each loop. That code is fragile as it (implicitly) requires the fast loop to be processed first. I propose calling PhaseIdealLoop::clone_predicates_to_unswitched_loop() a single time and have it handle both loops in a single pass.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                roland Roland Westrelin
                Reporter:
                roland Roland Westrelin
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: