Inlining methods

Frost, Gary Gary.Frost at amd.com
Fri Oct 25 11:39:45 PDT 2013


I think -G:+InlineEverything was pushed to main line a few months back - July maybe?

When was your dev branch made?

Gary


From: Juan José Fumero Alfonso [mailto:jjfumero at gmail.com]
Sent: Friday, October 25, 2013 11:38 AM
To: Frost, Gary
Cc: graal-dev at openjdk.java.net
Subject: Re: Inlining methods

Hi Gary,
   I get the same output with the -XX:+UnlockDiagnosticVMOptions, only this:

      62    1     n       com.oracle.graal.hotspot.bridge.CompilerToVMImpl::executeCompiledMethodIntrinsic (native)   (static)
    168    2     n       java.lang.System::arraycopy (native)   (static)
The option -G:+InlineEverything does not exist in my version.
Thanks
Juan José Fumero


2013/10/25 Frost, Gary <Gary.Frost at amd.com<mailto:Gary.Frost at amd.com>>
WRT  -XX:+PrintInlining  I think you may also need -XX:+UnlockDiagnosticVMOptions if you are using a product JVM
build.

Gary



-----Original Message-----
From: graal-dev-bounces at openjdk.java.net<mailto:graal-dev-bounces at openjdk.java.net> [mailto:graal-dev-bounces at openjdk.java.net<mailto:graal-dev-bounces at openjdk.java.net>] On Behalf Of Juan José Fumero Alfonso
Sent: Friday, October 25, 2013 10:37 AM
To: graal-dev at openjdk.java.net<mailto:graal-dev at openjdk.java.net>
Subject: Inlining methods
Hello,
I am working with the OpenCL Component of Graal (com.edinburgh.parallel.opencl). This version is not public yet but It uses Graal to get the user code and generates OpenCL kernels. I have to create an Inlining optimization for my own code using Graal.  Now I have something like that:

        GraalCodeCacheProvider runtime = Graal.getRequiredCapability(GraalCodeCacheProvider.class);
        ResolvedJavaMethod javaMethod = runtime.lookupJavaMethod(method);
*        OptimisticOptimizations oo = new
OptimisticOptimizations(javaMethod);*

        oo.add(OptimisticOptimizations.Optimization.UseTypeCheckedInlining);

The package is com.oracle.graal.phases;

How can I ensure that the method is inline at the end?  I am using the -XX:+PrintCompilation options but there is not much information. Also I tried with the -XX:+PrintInlining but it seems this options does not exist.
 Is this the proper way to get it?


Thank you
Juan José Fumero



More information about the graal-dev mailing list