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

Incorrect type for IV phi of long counted loops after CCP

    XMLWordPrintable

Details

    • b27
    • 16
    • b27

    Backports

      Description

        The attached fuzzer test produces a different result for C2 compared to C1/interpreter.

        To reproduce:
        $ java -Xint Test.java > Xint.log
        $ java -XX:-TieredCompilation -Xcomp -XX:CompileOnly=Test Test.java > c2.log

        or

        $ java -Xint Reduced.java > Xint.log
        $ java -XX:-TieredCompilation -Xcomp -XX:CompileOnly=Reduced Reduced.java > c2.log

        # Original output of Test.java
        $ diff Xint.log c2.log
        4c4
        < f4 lArr iArr3 = 1296662437,-6368796162110135215,-68624
        ---
        > f4 lArr iArr3 = 1296662437,-6368796162110135215,-115125
        14c14
        < f4 lArr iArr3 = 1296662437,-6368796162110135215,-68624
        ---
        > f4 lArr iArr3 = 1296662437,-6368796162110135215,-115125
        24c24
        < f4 lArr iArr3 = 1296662437,-6368796162110135215,-68624
        ---
        > f4 lArr iArr3 = 1296662437,-6368796162110135215,-115125
        34c34
        < f4 lArr iArr3 = 1296662437,-6368796162110135215,-68624
        ---
        > f4 lArr iArr3 = 1296662437,-6368796162110135215,-115125
        44c44
        < f4 lArr iArr3 = 1296662437,-6368796162110135215,-68624
        ---
        > f4 lArr iArr3 = 1296662437,-6368796162110135215,-115125
        54c54
        < f4 lArr iArr3 = 1296662437,-6368796162110135215,-68624
        ---
        > f4 lArr iArr3 = 1296662437,-6368796162110135215,-115125
        64c64
        < f4 lArr iArr3 = 1296662437,-6368796162110135215,-68624
        ---
        > f4 lArr iArr3 = 1296662437,-6368796162110135215,-115125
        74c74
        < f4 lArr iArr3 = 1296662437,-6368796162110135215,-68624
        ---
        > f4 lArr iArr3 = 1296662437,-6368796162110135215,-115125
        84c84
        < f4 lArr iArr3 = 1296662437,-6368796162110135215,-68624
        ---
        > f4 lArr iArr3 = 1296662437,-6368796162110135215,-115125
        94c94
        < f4 lArr iArr3 = 1296662437,-6368796162110135215,-68624
        ---
        > f4 lArr iArr3 = 1296662437,-6368796162110135215,-115125

        Attachments

          1. FuzzerUtils.java
            13 kB
          2. Reduced.java
            0.8 kB
          3. Reduced2.java
            0.7 kB
          4. Test.java
            9 kB

          Issue Links

            Activity

              People

                roland Roland Westrelin
                chagedorn Christian Hagedorn
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: