< prev index next >

src/hotspot/share/opto/vectornode.cpp

Print this page
*** 1103,11 ***
--- 1103,13 ---
      case Op_MulReductionVD:
        return gvn.makecon(TypeD::ONE);
      case Op_MinReductionV:
        switch (bt) {
          case T_BYTE:
+           return gvn.makecon(TypeInt::BYTE_MAX);
          case T_SHORT:
+           return gvn.makecon(TypeInt::SHORT_MAX);
          case T_INT:
            return gvn.makecon(TypeInt::MAX);
          case T_LONG:
            return gvn.makecon(TypeLong::MAX);
          case T_FLOAT:

*** 1118,11 ***
--- 1120,13 ---
        }
        break;
      case Op_MaxReductionV:
        switch (bt) {
          case T_BYTE:
+           return gvn.makecon(TypeInt::BYTE_MIN);
          case T_SHORT:
+           return gvn.makecon(TypeInt::SHORT_MIN);
          case T_INT:
            return gvn.makecon(TypeInt::MIN);
          case T_LONG:
            return gvn.makecon(TypeLong::MIN);
          case T_FLOAT:
< prev index next >