From 327d87f9049560f55ef52d17feacd6ff6437fd75 Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 2 Apr 2015 11:41:26 -0400 Subject: [PATCH] P4 to Git Change 1137080 by emankov@em-hsa-amd on 2015/04/02 11:25:06 ECR #333753 - HSA HLC: disabling calls in Debug Mode (-g -O0) online in Compiler Lib Also fixes EPR 415634 non_uniform_1d_basic (from ocl conformance 2.0) failed: could not demangle group variable name resultsForThread0; Offline (opt -O0) calls are already disabled. Testing: pre-checkin, smoke, non_uniform_work_group Reviewers: Stanislav Mekhanoshin, Daniil Fukalov Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/opt_level.cpp#24 edit [ROCm/clr commit: a9fd476121ad21bde8e15c0cc7bea3d8901bc712] --- .../clr/rocclr/compiler/lib/backends/common/opt_level.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/clr/rocclr/compiler/lib/backends/common/opt_level.cpp b/projects/clr/rocclr/compiler/lib/backends/common/opt_level.cpp index b02780646a..6b30744096 100644 --- a/projects/clr/rocclr/compiler/lib/backends/common/opt_level.cpp +++ b/projects/clr/rocclr/compiler/lib/backends/common/opt_level.cpp @@ -187,6 +187,10 @@ GPUO0OptLevel::optimize(aclBinary *elf, Module *input, bool isGPU) // 1. Mark all non-kernel functions as having internal linkage. // 2. Invoke the GlobalOptimizer to resolve function aliases. // 3. Force inlining using our custom inliner pass. + if (Options()->oVariables->EnableDebug) { + HLC_HSAIL_Enable_Calls = false; + HLC_Disable_Amd_Inline_All = false; + } Passes().add(createAMDSymbolLinkagePass(true, NULL)); Passes().add(createGlobalOptimizerPass()); if (!HLC_Disable_Amd_Inline_All && !DisableInline ) {