mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 08:56:04 +00:00

Patch by Diego Treviño! Differential Revision: https://reviews.llvm.org/D66320 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372264 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
322 B
Python
Executable File
17 lines
322 B
Python
Executable File
import sys
|
|
import re
|
|
|
|
InterestingBBs = 0
|
|
input = open(sys.argv[1], "r")
|
|
for line in input:
|
|
i = line.find(';')
|
|
if i >= 0:
|
|
line = line[:i]
|
|
if line.startswith("interesting") or "%interesting" in line:
|
|
InterestingBBs += 1
|
|
|
|
if InterestingBBs == 6:
|
|
sys.exit(0) # interesting!
|
|
|
|
sys.exit(1) # IR isn't interesting
|