https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108992
--- Comment #8 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #7)
> (In reply to Nikita Kniazev from comment #6)
> > The duplication happens even if I make cond int and compare with any other
> > value
> >
> > void use(int *);
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108992
--- Comment #7 from Andrew Pinski ---
(In reply to Nikita Kniazev from comment #6)
> The duplication happens even if I make cond int and compare with any other
> value
>
> void use(int *);
> void use2(int *);
>
> void foo(int * p, int cond)
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108992
--- Comment #6 from Nikita Kniazev ---
> Did you see this in real code or you just noticed this while looking at code
> generation?
If you mean do I have any benchmark - unfortunately no. I noticed it for a
while by poking different code to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108992
--- Comment #5 from Andrew Pinski ---
Note I filed PR 108997 for what seems like the wrong heurstic for the
prediction.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108992
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |INVALID
Status|UNCONFIRMED