Mercurial > hg > graal-jvmci-8
diff src/share/vm/graal/graalVMToCompiler.cpp @ 11699:03fe11f5f186
PTX Codegen: predicate register materialization and declaration; conditional branch generation; fix register declaration.
author | S.Bharadwaj Yadavalli <bharadwaj.yadavalli@oracle.com> |
---|---|
date | Tue, 17 Sep 2013 23:35:42 -0400 |
parents | 4f69a5189e77 |
children | f87c68d79f07 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalVMToCompiler.cpp Tue Sep 17 18:36:54 2013 -0700 +++ b/src/share/vm/graal/graalVMToCompiler.cpp Tue Sep 17 23:35:42 2013 -0400 @@ -62,15 +62,13 @@ if (JNIHandles::resolve(_graalRuntimePermObject) == NULL) { #ifdef AMD64 Symbol* name = NULL; - if (UseGPU) { - // Set name to PTXHotSpotRuntime if nVidia GPU was detected. - if ((gpu::get_target_il_type() == gpu::PTX) && - gpu::is_available() && gpu::has_gpu_linkage()) { - name = vmSymbols::com_oracle_graal_hotspot_ptx_PTXHotSpotGraalRuntime(); - } - // Set name to corresponding runtime classname for other - // supported GPU runtimes, here. - } else { + // Set name to PTXHotSpotRuntime if nVidia GPU was detected. + if (UseGPU && (gpu::get_target_il_type() == gpu::PTX) && + gpu::is_available() && gpu::has_gpu_linkage()) { + name = vmSymbols::com_oracle_graal_hotspot_ptx_PTXHotSpotGraalRuntime(); + } + + if (name == NULL) { name = vmSymbols::com_oracle_graal_hotspot_amd64_AMD64HotSpotGraalRuntime(); } #endif