<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 6, 2017 at 8:47 AM, bryant via Phabricator <span dir="ltr"><<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">bryant added a comment.<br>
<br>
drive-by comment.<br>
<br>
<br>
<br>
================<br>
Comment at: utils/update_test_checks.py:<wbr>176<br>
<span class="">+      if match.group(1) in vars_seen:<br>
+        line = line.replace('%' + match.group(1), get_value_use(match.group(1)), 1)<br>
+        continue<br>
</span>----------------<br>
You're limiting the number of replaced uses to 1. Can a line have more than one use?<br></blockquote><div><br></div><div>Yes, but you want to replace one at a time anyway.</div><div><br></div><div><br></div><div>because it could be a use of "bb", and the line could be phi [a, bb], [b, bb17], [c, bb].</div><div><br></div><div>If you replace  all uses of bb, you'll mistakenly replace bb17.</div><div><br></div></div></div></div>