[PATCH] D28384: Update update_test_checks to work properly with phi nodes and other fun things.

Daniel Berlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 5 15:32:41 PST 2017


dberlin added inline comments.


================
Comment at: utils/update_test_checks.py:73
+# spaces, commas, paren, or end of the string
+IR_VALUE_RE = re.compile(r'\s+%(.+?)(?:[,\s\(\)]|\Z)')
 
----------------
Note that the ugly |  is necessary because \Z (or $) does nothing in the character class :(



https://reviews.llvm.org/D28384





More information about the llvm-commits mailing list