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

[aarch64, x86] improving OpToAssembly output for partialSubtypeCheckConstSuper Instruct

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • hotspot
    • b24

      Fix for aarch64, similar change will be required for x86 as well.

      amitkumar@Amits-MacBook-Pro jdk % git diff
      diff --git a/src/hotspot/cpu/aarch64/aarch64.ad b/src/hotspot/cpu/aarch64/aarch64.ad
      index a82a1b396e0..1bf6159e67d 100644
      --- a/src/hotspot/cpu/aarch64/aarch64.ad
      +++ b/src/hotspot/cpu/aarch64/aarch64.ad
      @@ -16230,7 +16230,7 @@ instruct partialSubtypeCheckConstSuper(iRegP_R4 sub, iRegP_R0 super_reg, immP su
         effect(KILL cr, TEMP tempR1, TEMP tempR2, TEMP tempR3, TEMP vtemp);
       
         ins_cost(700); // smaller than the next version
      - format %{ "partialSubtypeCheck $result, $sub, super" %}
      + format %{ "partialSubtypeCheck $result, $sub, $super_reg, $super_con" %}
       
         ins_encode %{
           bool success = false;

            amitkumar Amit Kumar
            amitkumar Amit Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: