P4 to Git Change 1135916 by smekhano@stas-nova-hsa on 2015/03/30 18:31:55
ECR #333753 - TargetMachine is created not only for codegen, but for optimizer as well This is to provide target specific optimizations in the intermediate optimizer. LLVM 3.6 provides TargetTransformInfo for this purpose which requires TargetMachine. No correctness issues will occur if TargetInfo is not created, but optmizations will target generic machine. Testing: smoke, precheckin Reviewed by Evgeny Mankov Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/codegen.cpp#60 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/opt_level.cpp#23 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/opt_level.hpp#3 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/optimizer.cpp#25 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#6 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#16 edit
Bu işleme şunda yer alıyor:
1 ebeveyn
491b28fa4e
işleme
5f67b5bb68
6 files changed
+106
-43
No files matched your search
@@ -71,7 +71,7 @@ CPUOptimizer::optimize(llvm::Module *input)
|
||||
if (Options()->oVariables->EnableBuildTiming) {
|
||||
time_opt = amd::Os::timeNanos();
|
||||
}
|
||||
ret = cpuOpt->optimize(LLVMBinary(), false);
|
||||
ret = cpuOpt->optimize(Elf(), LLVMBinary(), false);
|
||||
if (Options()->oVariables->EnableBuildTiming) {
|
||||
time_opt = amd::Os::timeNanos() - time_opt;
|
||||
std::stringstream tmp_ss;
|
||||
@@ -123,7 +123,7 @@ GPUOptimizer::optimize(llvm::Module *input)
|
||||
if (Options()->oVariables->EnableBuildTiming) {
|
||||
time_opt = amd::Os::timeNanos();
|
||||
}
|
||||
ret = gpuOpt->optimize(LLVMBinary(), true);
|
||||
ret = gpuOpt->optimize(Elf(), LLVMBinary(), true);
|
||||
if (Options()->oVariables->EnableBuildTiming) {
|
||||
time_opt = amd::Os::timeNanos() - time_opt;
|
||||
std::stringstream tmp_ss;
|
||||
|
||||
Reference in new issue
Bir kullanıcı engelle