https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66752
Yuri Rumyantsev <ysrumyan at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ysrumyan at gmail dot com
--- Comment #3 from Yuri Rumyantsev <ysrumyan at gmail dot com> ---
We found out simple reproducer for this issue which is attached.
The problem is redundant test in loop:
for (i = -1, flag = 1; ++i < N && flag;)
if (a[i] == b) < set 'flag' to 0 & do something>
It is clear that test 'flag==1' can be deleted since there is the only place
where it is set up to zero (then-part).
Note that clang deletes it.