Skip to content

Commit

Permalink
update_mir_test_checks: Handle empty liveins
Browse files Browse the repository at this point in the history
An empty livein block doesn't make much sense (why not just omit it?)
but they're legal and some tests have them, so its best to handle it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316089 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
bogner committed Oct 18, 2017
1 parent 2457f45 commit ad73a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/update_mir_test_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
VREG_DEF_RE = re.compile(
r'^ *(?P<vregs>{0}(?:, {0})*) '
r'= (?P<opcode>[A-Zt][A-Za-z0-9_]+)'.format(VREG_RE.pattern))
PREFIX_DATA_RE = re.compile(r'^ *(;|bb.[0-9].*: *$|[a-z]+: |$)')
PREFIX_DATA_RE = re.compile(r'^ *(;|bb.[0-9].*: *$|[a-z]+:( |$)|$)')

MIR_FUNC_RE = re.compile(
r'^---$'
Expand Down

0 comments on commit ad73a3d

Please sign in to comment.