[llvm] r316089 - update_mir_test_checks: Handle empty liveins
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 08:38:56 PDT 2017
Author: bogner
Date: Wed Oct 18 08:38:56 2017
New Revision: 316089
URL: http://llvm.org/viewvc/llvm-project?rev=316089&view=rev
Log:
update_mir_test_checks: Handle empty liveins
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.
Modified:
llvm/trunk/utils/update_mir_test_checks.py
Modified: llvm/trunk/utils/update_mir_test_checks.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/update_mir_test_checks.py?rev=316089&r1=316088&r2=316089&view=diff
==============================================================================
--- llvm/trunk/utils/update_mir_test_checks.py (original)
+++ llvm/trunk/utils/update_mir_test_checks.py Wed Oct 18 08:38:56 2017
@@ -40,7 +40,7 @@ VREG_RE = re.compile(r'(%[0-9]+)(?::[a-z
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'^---$'
More information about the llvm-commits
mailing list