[PATCH] D132077: [llvm-reduce] Add pass that reduces DebugInfo metadata

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 6 16:29:11 PDT 2022


MatzeB added inline comments.


================
Comment at: llvm/test/tools/llvm-reduce/Inputs/remove-dimetadata.py:1-8
+import sys
+
+input = open(sys.argv[1], "r")
+for line in input:
+  if "interesting" in line:
+    sys.exit(0)
+
----------------
This checks whether there is at least 1 line in the input with the word "interesting" in it.

But you can get that with somethign like `FileCheck --prefix=INTERESTING %s < xxx` `INTERESTING: interesting` instead with the need for a custom python script, can't you?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132077/new/

https://reviews.llvm.org/D132077



More information about the llvm-commits mailing list