<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylk82umzAQhZ_GbEYgY8gPCxb3Nuq2m76AwQO4cmxkD8lNnr6GJBeUXVUJw4yPz8fIYzdO3erWSNtD686jNuhBOZBXeYOrpgFoQNC201YTgnFuhMni14gtoTI3kB1FhxtJn-WdtLMPV_orZ-IH4yfGPwIiKCSpzUMbiMbAig8mfsanb9usd6pxhjLn-zhzjwPx6-jvv6v7A_F4p2kKhIGyFmKYbiVtCQJJT62zihWfzz-TJN3CLJ5vF-mBFSfIv-XVepbaMnG8OK2YqJ7q4bkMVvIbAEB30ZbP07OyVvCCAGww8E7iGxI7nF7hdYhtmLkzZl3hkSZvN6ZvS6LqQlVFJRM50eB8felU1yWTN_XbZsf9n5osdjomxlxen3T07k9saUx1CBOGGOxEdRDJUHcFcsyl2POqRdUc86bj7b4su0OT56osEyMbNKFmu08mhMUrLIgYs90p-f8KdC24EDznZRz74pgdi7JoJEZRVhXPG1ZyjA002cyZz1Di6wXZTH2IotGBwirKEHRvEZeCY4WkySzJ5hDH-X-5BclScr3U-xfozARc>52972</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[optimaztion] do away with the infinite loop unexpectedly
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
vfdff
</td>
</tr>
</table>
<pre>
clang compiler do away with the infinite loop unexpectedly after optimaztion with -O1,
see detail with https://gcc.godbolt.org/z/eex8rzT9z
--- test.c ----
int startcond;
static int myvar = 1;
int main(void)
{
startcond = 1;
if(1 == startcond)
{
startcond = 0;
}
while(1);
return 0;
}
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVksGyoyAQRb8GN11aBM0kLly8N6nZzmZ-AKRVpghY0CYv-fpBkzyt7KZKtOFyD7dslNe3prXS9dD682gsBtAe5FXe4GpoABoQjOuMM4RgvR9hcvg1Ykuo7Q1kR8nhRzJneSfj3cOV_94x8ZPxE-MfERE0kjT2oQ1EY2TlBxO_0tO3bdF7rbylwoc-rdzTQPw6hvuf-v5APN55ngNhpKKFVOZbyTiCSDJQ651m5efzZJJkWpjF8-0iA7DyBLtvebWepXFMHC_eaCbqp3p4boOV_AYAMF2y7eblWVkTvCAAGwy8k_iGxA6nV3kdUhtm7oxZdwSkKbiN6duS6abUdVnLjAxZbNj-c9MRtj_9T0uzKdjmrUfJNakiXZA0sfby-uRj8H-TLU1NjBPGVOxFfRDZ0JQ111WrBHYC6-ooOt1xVXKBqqpVxw-ZlQptnLMyIRxeYUGkOuXNTCO4EHzHqzR-lMfiWFalkpjgsq75TrGKY-qaLeYc88XJQrNEUlMfk2hNpLiKMkbTO1x-zcyXEw0-NJeUqsuWg5sl-D-3n-7g">