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: a9fd476121]
このコミットが含まれているのは:
foreman
2015-04-02 11:41:26 -04:00
コミット 327d87f904
+4
ファイルの表示
@@ -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 ) {