Skip to content

Commit acd22f5

Browse files
authored
[Comgr][SPIRV] Fix translation log to only output with VERBOSE (llvm#644)
1 parent 4f80a26 commit acd22f5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

amd/comgr/src/comgr-compiler.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,9 +1931,11 @@ amd_comgr_status_t AMDGPUCompiler::translateSpirvToBitcode() {
19311931
return Status;
19321932
}
19331933

1934-
LogS << "SPIR-V Translation: amd-llvm-spirv -r --spirv-target-env=CL2.0 "
1935-
<< getFilePath(Input, InputDir) << " "
1936-
<< getFilePath(Output, OutputDir) << " (command line equivalent)\n";
1934+
if (env::shouldEmitVerboseLogs()) {
1935+
LogS << "SPIR-V Translation: amd-llvm-spirv -r --spirv-target-env=CL2.0 "
1936+
<< getFilePath(Input, InputDir) << " "
1937+
<< getFilePath(Output, OutputDir) << " (command line equivalent)\n";
1938+
}
19371939

19381940
if (env::shouldSaveTemps()) {
19391941
if (auto Status = outputToFile(Output, getFilePath(Output, OutputDir))) {

0 commit comments

Comments
 (0)