[PATCH] D42144: [utils] Make .cfi_startproc optional for powerpc

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 16:08:01 PST 2018


MaskRay created this revision.
Herald added subscribers: llvm-commits, nemanjai.

llc sometimes may not emit .cfi_startproc which makes func_dict to have less entries.


Repository:
  rL LLVM

https://reviews.llvm.org/D42144

Files:
  utils/update_llc_test_checks.py


Index: utils/update_llc_test_checks.py
===================================================================
--- utils/update_llc_test_checks.py
+++ utils/update_llc_test_checks.py
@@ -59,7 +59,7 @@
 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42144.130057.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180117/609508db/attachment.bin>


More information about the llvm-commits mailing list