Skip to content

Commit 4f80fce

Browse files
wenju-heSquallATF
authored andcommitted
[libclc] Enable -fdiscard-value-names build flag to reduce bitcode size (llvm#149016)
The flag reduces nvptx64--nvidiacl.bc size from 10.6MB to 5.2MB.
1 parent 6de0d98 commit 4f80fce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libclc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
402402
-I${CMAKE_CURRENT_SOURCE_DIR}/clc/include
403403
# Error on undefined macros
404404
-Werror=undef
405+
-fdiscard-value-names
405406
)
406407

407408
if( NOT "${cpu}" STREQUAL "" )

0 commit comments

Comments
 (0)