[llvm] r264543 - workaround for an IR variable named %.
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 27 13:44:35 PDT 2016
Author: spatel
Date: Sun Mar 27 15:44:35 2016
New Revision: 264543
URL: http://llvm.org/viewvc/llvm-project?rev=264543&view=rev
Log:
workaround for an IR variable named %.
(which SimplifyCFG can produce...)
Modified:
llvm/trunk/utils/update_test_checks.py
Modified: llvm/trunk/utils/update_test_checks.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/update_test_checks.py?rev=264543&r1=264542&r2=264543&view=diff
==============================================================================
--- llvm/trunk/utils/update_test_checks.py (original)
+++ llvm/trunk/utils/update_test_checks.py Sun Mar 27 15:44:35 2016
@@ -136,6 +136,8 @@ def genericize_check_lines(lines):
lines_with_def = []
vars_seen = []
for line in lines:
+ # An IR variable named '%.' matches the FileCheck regex string.
+ line = line.replace('%.', '%dot')
m = IR_VALUE_DEF_RE.match(line)
if m:
vars_seen.append(m.group(1))
More information about the llvm-commits
mailing list