[clang] 84919a0 - [perf-training][merge-fdata] Clean up input fdata files (#139650)

via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 19:06:47 PST 2026


Author: Amir Ayupov
Date: 2026-11-07T03:06:42Z
New Revision: 84919a048fe6a5f777f5dd0daac0d2d06ce9987f

URL: https://github.com/llvm/llvm-project/commit/84919a048fe6a5f777f5dd0daac0d2d06ce9987f
DIFF: https://github.com/llvm/llvm-project/commit/84919a048fe6a5f777f5dd0daac0d2d06ce9987f.diff

LOG: [perf-training][merge-fdata] Clean up input fdata files (#139650)

BOLT AArch64 worker has been running out of disk space due to excessive
fdata files being produced from clang-bolt builder. Delete merged fdata
files to counter disk space waste.

Added: 
    

Modified: 
    clang/utils/perf-training/perf-helper.py

Removed: 
    


################################################################################
diff  --git a/clang/utils/perf-training/perf-helper.py b/clang/utils/perf-training/perf-helper.py
index e28920f3e0c43c..8b8e9124ccc993 100644
--- a/clang/utils/perf-training/perf-helper.py
+++ b/clang/utils/perf-training/perf-helper.py
@@ -73,9 +73,11 @@ def merge_fdata(args):
             + "\tMerges all fdata files from path into output."
         )
         return 1
-    cmd = [args[0], "-o", args[1]]
-    cmd.extend(findFilesWithExtension(args[2], "fdata"))
-    subprocess.check_call(cmd)
+    inputs = findFilesWithExtension(args[2], "fdata")
+    subprocess.check_call([args[0], inputs, "-o", args[1]])
+    # Remove input fdata files to save space.
+    for filename in inputs:
+        os.remove(filename)
     return 0
 
 


        


More information about the cfe-commits mailing list