[𝘀𝗽𝗿] initial version
Created using spr 1.3.5
diff --git a/clang/utils/perf-training/perf-helper.py b/clang/utils/perf-training/perf-helper.py
index 80c6356..b369811 100644
--- a/clang/utils/perf-training/perf-helper.py
+++ b/clang/utils/perf-training/perf-helper.py
@@ -65,9 +65,11 @@
+ "\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