[llvm] b747607 - update_test_checks: match CHECK-EMPTY lines for replacement.

James Y Knight via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 09:17:44 PST 2020


Author: James Y Knight
Date: 2020-01-02T12:17:37-05:00
New Revision: b747607bec4f50b6b6259fe6aa38b9d9e870d84b

URL: https://github.com/llvm/llvm-project/commit/b747607bec4f50b6b6259fe6aa38b9d9e870d84b
DIFF: https://github.com/llvm/llvm-project/commit/b747607bec4f50b6b6259fe6aa38b9d9e870d84b.diff

LOG: update_test_checks: match CHECK-EMPTY lines for replacement.

In a8a89c77ea3c16b45763fca6940bbfd3bef7884f, the script started adding
CHECK-EMPTY lines, but the regex for which lines to replace was not
updated.

Added: 
    

Modified: 
    llvm/utils/UpdateTestChecks/common.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 985c0b074c50..ae4621c76978 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -61,7 +61,7 @@ def invoke_tool(exe, cmd_args, ir):
 RUN_LINE_RE = re.compile(r'^\s*(?://|[;#])\s*RUN:\s*(.*)$')
 CHECK_PREFIX_RE = re.compile(r'--?check-prefix(?:es)?[= ](\S+)')
 PREFIX_RE = re.compile('^[a-zA-Z0-9_-]+$')
-CHECK_RE = re.compile(r'^\s*(?://|[;#])\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL|-SAME)?:')
+CHECK_RE = re.compile(r'^\s*(?://|[;#])\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL|-SAME|-EMPTY)?:')
 
 OPT_FUNCTION_RE = re.compile(
     r'^\s*define\s+(?:internal\s+)?[^@]*@(?P<func>[\w-]+?)\s*'


        


More information about the llvm-commits mailing list