Author: Konrad Kleine
Date: 2025-06-06T21:08:56+02:00
New Revision: 7db847df556f9c2670046f0d067b3aa80d6b9d39

URL: 
https://github.com/llvm/llvm-project/commit/7db847df556f9c2670046f0d067b3aa80d6b9d39
DIFF: 
https://github.com/llvm/llvm-project/commit/7db847df556f9c2670046f0d067b3aa80d6b9d39.diff

LOG: Filter out configuration file from compile commands (#131099)

The commands to run the compilation when printed with `-###` contain
various irrelevant lines for the perf-training. Most of them are
filtered out already but when configured with
`CLANG_CONFIG_FILE_SYSTEM_DIR` a new line like the following is
added and needs to be filtered out:

`Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang.cfg`

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 80c6356d0497c..29904aded5ab0 100644
--- a/clang/utils/perf-training/perf-helper.py
+++ b/clang/utils/perf-training/perf-helper.py
@@ -237,6 +237,7 @@ def get_cc1_command_for_args(cmd, env):
             or ln.startswith("InstalledDir:")
             or ln.startswith("LLVM Profile Note")
             or ln.startswith(" (in-process)")
+            or ln.startswith("Configuration file:")
             or " version " in ln
         ):
             continue


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to