mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[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
This commit is contained in:
parent
2779613cc9
commit
3d63cfe214
@ -24,7 +24,7 @@ pattern = re.compile(r"(digraph VPlan {.*?\n})",re.DOTALL)
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user