src/share/vm/opto/library_call.cpp

Print this page

        

@@ -335,15 +335,10 @@
     if (!UseNewReflection)  return NULL;
     if (!InlineReflectionGetCallerClass)  return NULL;
     if (!JDK_Version::is_gte_jdk14x_version())  return NULL;
     break;
 
-  case vmIntrinsics::_bitCount_i:
-  case vmIntrinsics::_bitCount_l:
-    if (!UsePopCountInstruction)  return NULL;
-    break;
-
   case vmIntrinsics::_Reference_get:
     // It is only when G1 is enabled that we absolutely
     // need to use the intrinsic version of Reference.get()
     // so that the value in the referent field, if necessary,
     // can be registered by the pre-barrier code.

@@ -414,18 +409,16 @@
                      C->unique() - nodes);
     }
     return kit.transfer_exceptions_into_jvms();
   }
 
-  if (PrintIntrinsics) {
+  // The intrinsic bailed out
+  if (PrintIntrinsics || PrintInlining NOT_PRODUCT( || PrintOptoInlining) ) {
+    const char* msg = is_virtual() ? "failed to inline (intrinsic, virtual)" : "failed to inline (intrinsic)";
     if (jvms->has_method()) {
       // Not a root compile.
-      tty->print("Did not inline intrinsic %s%s at bci:%d in",
-                 vmIntrinsics::name_at(intrinsic_id()),
-                 (is_virtual() ? " (virtual)" : ""), kit.bci());
-      kit.caller()->print_short_name(tty);
-      tty->print_cr(" (%d bytes)", kit.caller()->code_size());
+      CompileTask::print_inlining(kit.callee(), jvms->depth() - 1, kit.bci(), msg);
     } else {
       // Root compile
       tty->print("Did not generate intrinsic %s%s at bci:%d in",
                vmIntrinsics::name_at(intrinsic_id()),
                (is_virtual() ? " (virtual)" : ""), kit.bci());