OSDN Git Service

[utils] Make .cfi_startproc optional for powerpc
authorFangrui Song <maskray@google.com>
Wed, 17 Jan 2018 18:48:50 +0000 (18:48 +0000)
committerFangrui Song <maskray@google.com>
Wed, 17 Jan 2018 18:48:50 +0000 (18:48 +0000)
Summary: llc sometimes may not emit .cfi_startproc which makes func_dict to have less entries.

Subscribers: nemanjai, llvm-commits

Differential Revision: https://reviews.llvm.org/D42144

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322725 91177308-0d34-0410-b5e6-96231b3b80d8

utils/update_llc_test_checks.py

index 57d6e57..7ea0431 100755 (executable)
@@ -59,7 +59,7 @@ ASM_FUNCTION_MIPS_RE = re.compile(
 ASM_FUNCTION_PPC_RE = re.compile(
     r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n'
     r'\.Lfunc_begin[0-9]+:\n'
-    r'[ \t]+.cfi_startproc\n'
+    r'(?:[ \t]+.cfi_startproc\n)?'
     r'(?:\.Lfunc_[gl]ep[0-9]+:\n(?:[ \t]+.*?\n)*)*'
     r'(?P<body>.*?)\n'
     # This list is incomplete