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

x86: JIT should produce better code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.1.2
    • 1.1
    • vm-legacy
    • jit
    • b01
    • x86
    • solaris_2.5.1
    • Not verified

      The x86 JIT should implement the following optimization:
        1) aligh method entry points on a 16-byte boundary
        2) optimize within extended basic blocks. For example, currently
           for the code:
              if((a[i] < 0)
                 a[i] = 0;

           the JIT will bounds check for the second reference to a[i] even though
           the check was already done in the previous line.
        3) Generate integer divisions by a constant power of 2 with shifts
           and masks instead of the "idiv" instruction.

            sdeversunw Steve Dever (Inactive)
            sdeversunw Steve Dever (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: