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

C2: rework signed/unsigned int/long min/max

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 15
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      JDK-8244504 introduces MaxNode::*_max() and MaxNode::*_min() methods. They are implemented with a subgraph that relies on CMove (except for signed max and min on ints which take advantage of existing MinI and MaxI nodes). Instead, they could all have their own node type similar to MinI/MaxI implemented either in the backend or lowered as a CMove subgraph after optimizations. In the current implementation, the type of the result is passed as an argument to the factory method. It should be computed from the type of the inputs.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              roland Roland Westrelin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: