P4 to Git Change 1176126 by smekhano@stas-nova-hsa on 2015/07/31 12:20:56
ECR #333753 - HSA HLC: disable nfma_f32, nrcp_f32 and nsrqrt_f32 if denorms are not flushed
Testing: smoke, precheckin
Reviewed by Brian Sumner
Affected files ...
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#130 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/BRIGAsmPrinter.cpp#122 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILFusion.td#17 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILISelDAGToDAG.cpp#47 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILInstructions.td#12 edit
... //depot/stg/opencl/drivers/opencl/tests/hsa/tlst/llc_opt.tlst#41 edit
[ROCm/clr commit: a320fe1f95]
This commit is contained in:
@@ -119,7 +119,9 @@
|
||||
#define DEBUG_TYPE "ocl_linker"
|
||||
|
||||
#if !defined(LEGACY_COMPLIB)
|
||||
extern bool HLC_FlushF32Denorms;
|
||||
namespace llvm {
|
||||
extern bool HLC_FlushF32Denorms;
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace AMDSpir {
|
||||
@@ -710,7 +712,7 @@ amdcl::OCLLinker::link(llvm::Module* input, std::vector<llvm::Module*> &libs)
|
||||
setUseNative(Options()->oVariables->OptUseNative);
|
||||
setDenormsAreZero(Options()->oVariables->DenormsAreZero);
|
||||
#if !defined(LEGACY_COMPLIB)
|
||||
HLC_FlushF32Denorms = Options()->oVariables->DenormsAreZero;
|
||||
llvm::HLC_FlushF32Denorms = Options()->oVariables->DenormsAreZero;
|
||||
#endif
|
||||
setUniformWorkGroupSize(Options()->oVariables->UniformWorkGroupSize);
|
||||
setHaveFastFMA32(chip == "Cypress"
|
||||
|
||||
Reference in New Issue
Block a user