P4 to Git Change 1451977 by lmoriche@lmoriche_opencl_dev2 on 2017/08/26 00:40:17

SWDEV-116136 - Support -Og for Clang
	- Add missed changes mentioned in the code review.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/common/codegen.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/common/opt_level.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/scState.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/options.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/options.hpp#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/codegen.cpp#74 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/opt_level.cpp#34 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.cpp#43 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.hpp#20 edit
This commit is contained in:
foreman
2017-08-26 00:57:57 -04:00
vanhempi 2c0b212d96
commit de1c5f6d0d
4 muutettua tiedostoa jossa 13 lisäystä ja 21 poistoa
@@ -71,10 +71,10 @@ OptLevel::setup(aclBinary *elf, bool isGPU, uint32_t OptLevel)
break;
case amd::option::OPT_O2: // -O2
case amd::option::OPT_O5: // -O5
case amd::option::OPT_OG: // -Og
case amd::option::OPT_OS: // -Os
OLvl = CodeGenOpt::Default;
break;
case amd::option::OPT_OG: // -Og
case amd::option::OPT_O3: // -O3
case amd::option::OPT_O4: // -O4
OLvl = CodeGenOpt::Aggressive;
@@ -278,7 +278,7 @@ int
OgOptLevel::optimize(aclBinary *elf, Module *input, bool isGPU)
{
module_ = input;
setup(elf, isGPU, 3);
setup(elf, isGPU, 2);
run(elf);
return 0;
}