Skip to content

Commit 945dc34

Browse files
committed
Remove some deadcode
1 parent 5298942 commit 945dc34

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

clang/utils/perf-training/bolt.lit.cfg

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ config.cmake_compiler_args = "-DCMAKE_C_COMPILER='{0}' -DCMAKE_CXX_COMPILER='{0}
2929
re.sub(r"\s+", ";", clang_nowrapper)
3030
)
3131

32-
# We need to limit the number of build jobs with perf in order to avoid this
33-
# error:
34-
#
35-
# | Permission error mapping pages.
36-
# | Consider increasing /proc/sys/kernel/perf_event_mlock_kb,
37-
# | or try again with a smaller value of -m/--mmap_pages.
38-
ninja_args = ""
39-
if clang_bolt_mode != "instrument":
40-
ninja_args = "-j1"
41-
4232
config.name = "Clang Perf Training"
4333
config.suffixes = [
4434
".c",
@@ -68,5 +58,4 @@ config.substitutions.append(("%cmake_compiler_args", config.cmake_compiler_args)
6858
config.substitutions.append(('%cmake_generator', config.cmake_generator))
6959
config.substitutions.append(('%cmake', config.cmake_exe))
7060
config.substitutions.append(('%llvm_src_dir', config.llvm_src_dir))
71-
config.substitutions.append(('%ninja_args', ninja_args))
7261
config.substitutions.append(('%perf_wrapper', perf_wrapper))

clang/utils/perf-training/lit.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ config.substitutions.append( ('%cmake_compiler_args', config.cmake_compiler_args
4343
config.substitutions.append( ('%cmake_generator', config.cmake_generator ) )
4444
config.substitutions.append( ('%cmake', config.cmake_exe ) )
4545
config.substitutions.append( ('%llvm_src_dir', config.llvm_src_dir ) )
46-
config.substitutions.append( ('%ninja_args', '' ) )
4746
config.substitutions.append( ('%perf_wrapper', '' ) )
4847

4948
config.environment['LLVM_PROFILE_FILE'] = 'perf-training-%4m.profraw'

0 commit comments

Comments
 (0)