Mercurial > hg > graal-compiler
changeset 22982:e8fb2acecb0c
Dump LIR before and after register allocation, as well as machine code, when Dump level is set to 1
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Thu, 12 Nov 2015 11:48:17 -0800 |
parents | f22ae5bade77 |
children | 5241b25e39a8 |
files | graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java Thu Nov 12 10:23:01 2015 -0800 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java Thu Nov 12 11:48:17 2015 -0800 @@ -312,7 +312,10 @@ } try (Scope s = Debug.scope("LIRStages", nodeLirGen, lir)) { - return emitLowLevel(backend.getTarget(), codeEmittingOrder, linearScanOrder, lirGenRes, lirGen, lirSuites, backend.newRegisterAllocationConfig(registerConfig)); + Debug.dump(1, lir, "After LIR generation"); + LIRGenerationResult result = emitLowLevel(backend.getTarget(), codeEmittingOrder, linearScanOrder, lirGenRes, lirGen, lirSuites, backend.newRegisterAllocationConfig(registerConfig)); + Debug.dump(1, lir, "Before code generation"); + return result; } catch (Throwable e) { throw Debug.handle(e); } @@ -375,7 +378,7 @@ Debug.metric("ExceptionHandlersEmitted").add(compilationResult.getExceptionHandlers().size()); } - Debug.dump(compilationResult, "After code generation"); + Debug.dump(1, compilationResult, "After code generation"); } } }