[llvm] c789939 - [utils] Fix regexp in llvm/utils/extract_vplan.py to extract VPlans.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 19 00:57:36 PDT 2020


Author: Mauri Mustonen
Date: 2020-08-19T08:57:12+01:00
New Revision: c78993955ebe2e27612f30022749c9d604a523b7

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

LOG: [utils] Fix regexp in llvm/utils/extract_vplan.py to extract VPlans.

Regarding this bug in Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=46451

I went ahead and fixed the regexp pattern and now Python script is able
to extract vplan graphs from the log files. Additionally some test for
this would be nice to have but I'm not sure are Python scripts tested
in LLVM and if so where they live.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D86068

Added: 
    

Modified: 
    llvm/utils/extract_vplan.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/extract_vplan.py b/llvm/utils/extract_vplan.py
index b4e34fc76ba5..a6f217b85176 100755
--- a/llvm/utils/extract_vplan.py
+++ b/llvm/utils/extract_vplan.py
@@ -24,7 +24,7 @@
 matches = re.findall(pattern, sys.stdin.read())
 
 for vplan in matches:
-    m = re.search("graph \[.+(VF=.+,UF.+), ", vplan)
+    m = re.search("graph \[.+(VF=.+,UF.+)", vplan)
     if not m:
         raise ValueError("Can't get the right VPlan name")
     name = re.sub('[^a-zA-Z0-9]', '', m.group(1))


        


More information about the llvm-commits mailing list