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

Remove unreached rules in AddNode::IdealIL

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 18
    • hotspot
    • b03
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Reorder optimizations in addnode so special cases appear before general cases; otherwise the special cases would be never covered.

      (a - b) + (c - d) subsumes both (a - b) + (b - c) and (a - b) + (c - a). Therefore (a - b) + (b - c) and (a - b) + (c - a) have to be placed before (a - b) + (c - d) so that they can work.

      I have submitted a pull request https://github.com/openjdk/jdk/pull/6752


            jiefu Jie Fu
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: