<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/70048>70048</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[UTC] Global value CHECK lines are duplicated each re-run when using -p
</td>
</tr>
<tr>
<th>Labels</th>
<td>
testing-tools
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hnrklssn
</td>
</tr>
</table>
<pre>
As mentioned by @jdoerfert in #63746, existing lines for checking globals are not recognised as such if the global has its named matched literally, leading to the line being kept while also being emitted again, resulting in duplicated CHECK lines. This still occurs when using `-p` a.k.a. `--preserve-names`. This blocks #70047.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxMUs1u4zwMfBr5QthQ5J_EBx_6pV92gb12H0CWaUsNLRmi3G7ffiE3wOYkiCBnODPUzG7xiINo_xPta6H3ZEMcrI93YvbFGKav4YVhRZ9c8DjB-AWike9TwDhjTOA8CFV39bnphLoC_nGcnF-AnEeGOUQwFs09lxYKoyYGHRF8SBDRhMU7xgk0A-_GgpshWXx0gtUMLjF4veIEq07G4gTkEkZN9JX5CPWUsVM4BjMrjJgrd9wSfFpHCJo4PKq4upQy4aKdzwAReadjY-dh2jdyRueG68__r7--VVTwZh0DJ0cEwZg9Mnxa9LBznhOdLDfRSdDVvdLV8S-3iIzxA8u8O4tOPkBGCubO2bKzlM25Kqahnvq61wUOp66_nNqzOl8KOzRGTjWaGjuFTT-apr1c5rYxrelnfWnHwg1KqvokVXNq1Ol0rnrUcm7nGY3pa91K0UhctaOK6GOtQlwKx7zjkIkvBekRiY_clUp4hFamEIiFUvkU4pDnynFfWDSSHCf-h5RcouNofr9dRfsKP74D-9C047N1R9ZPrqI2FiKWcffPFpZbsUcabEobi_pFqJtQt8Ulu4-VCatQt8z8eMothnc0SajbIYiFuh2a_gYAAP__AWjudQ">