Skip to content

Commit c789939

Browse files
Kazhuufhahn
authored andcommitted
[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
1 parent 8351e80 commit c789939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/extract_vplan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
matches = re.findall(pattern, sys.stdin.read())
2525

2626
for vplan in matches:
27-
m = re.search("graph \[.+(VF=.+,UF.+), ", vplan)
27+
m = re.search("graph \[.+(VF=.+,UF.+)", vplan)
2828
if not m:
2929
raise ValueError("Can't get the right VPlan name")
3030
name = re.sub('[^a-zA-Z0-9]', '', m.group(1))

0 commit comments

Comments
 (0)