[PATCH] D136170: [UpdateTestChecks] Sync flags in update_mir_test_checks.py with MIFlags

Anton Sidorenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 18 06:44:42 PDT 2022


asi-sc created this revision.
Herald added a subscriber: luismarques.
Herald added a project: All.
asi-sc requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Some instructions are not matched by update_mir_test_checks.py because MIFlags and
regex in the script are not synchronized.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136170

Files:
  llvm/utils/update_mir_test_checks.py


Index: llvm/utils/update_mir_test_checks.py
===================================================================
--- llvm/utils/update_mir_test_checks.py
+++ llvm/utils/update_mir_test_checks.py
@@ -35,7 +35,7 @@
 VREG_RE = re.compile(r'(%[0-9]+)(?::[a-z0-9_]+)?(?:\([<>a-z0-9 ]+\))?')
 MI_FLAGS_STR= (
     r'(frame-setup |frame-destroy |nnan |ninf |nsz |arcp |contract |afn '
-    r'|reassoc |nuw |nsw |exact |fpexcept )*')
+    r'|reassoc |nuw |nsw |exact |nofpexcept |nomerge )*')
 VREG_DEF_RE = re.compile(
     r'^ *(?P<vregs>{0}(?:, {0})*) = '
     r'{1}(?P<opcode>[A-Zt][A-Za-z0-9_]+)'.format(VREG_RE.pattern, MI_FLAGS_STR))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136170.468523.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221018/0bd0a966/attachment.bin>


More information about the llvm-commits mailing list