From baa06bfd13e9fdfedfbd593f8cb5a5245fce4c8f Mon Sep 17 00:00:00 2001 From: foreman Date: Mon, 27 Jul 2015 14:07:50 -0400 Subject: [PATCH] P4 to Git Change 1174322 by vpykhtin@vpykhtin-HSA on 2015/07/27 13:59:35 ECR #333753 - HSA HLC: enable passing -cl-denorms-are-zero down to llc in the compiler lib (enabling denormalzied floats) Testing: smoke, presubmit, reallyquick 2.0 Reviewed by Brian Sumner Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#128 edit ... //depot/stg/opencl/drivers/opencl/library/ocml/src/opts.cl#2 edit ... //depot/stg/opencl/drivers/opencl/tests/hsa/src/ocl/features/flush-denorms.cl#1 add ... //depot/stg/opencl/drivers/opencl/tests/hsa/tlst/ocl_features.tlst#22 edit --- rocclr/compiler/lib/backends/common/linker.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rocclr/compiler/lib/backends/common/linker.cpp b/rocclr/compiler/lib/backends/common/linker.cpp index 0dd0f09ef8..7324e5877a 100644 --- a/rocclr/compiler/lib/backends/common/linker.cpp +++ b/rocclr/compiler/lib/backends/common/linker.cpp @@ -646,9 +646,7 @@ amdcl::OCLLinker::link(llvm::Module* input, std::vector &libs) setUseNative(Options()->oVariables->OptUseNative); setDenormsAreZero(Options()->oVariables->DenormsAreZero); #if !defined(LEGACY_COMPLIB) - // TODO: Enable the following line to pass DenormsAreZero option to the HLC - // when ready - // HLC_FlushF32Denorms = Options()->oVariables->DenormsAreZero; + HLC_FlushF32Denorms = Options()->oVariables->DenormsAreZero; #endif setUniformWorkGroupSize(Options()->oVariables->UniformWorkGroupSize); setHaveFastFMA32(chip == "Cypress"