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

Identify integer minimum and maximum patterns created with if statements

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 21, 23
    • hotspot
    • b16

        The code patterns "a > b ? a : b" and "if (a > b) b = a" are fairly common in Java code. Currently, the compiler doesn't transform these patterns into minimum and maximum nodes, but such a transformation would compact the IR and allow for other optimizations, such as vectorization.

              jkarthikeyan Jasmine Karthikeyan
              jkarthikeyan Jasmine Karthikeyan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: