https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111456
--- Comment #7 from CVS Commits ---
The trunk branch has been updated by Andrew Pinski :
https://gcc.gnu.org/g:c3c6f30496d945b77dcb7f4ad8c3f8094f5a64a4
commit r14-4280-gc3c6f30496d945b77dcb7f4ad8c3f8094f5a64a4
Author: Andrew Pinski
Date: We
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111456
Andrew Pinski changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111456
Andrew Pinski changed:
What|Removed |Added
URL||https://gcc.gnu.org/piperma
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111456
--- Comment #5 from Andrew Pinski ---
Just a quick note, --param=logical-op-non-short-circuit=0 also allows the
missed optimization to no longer to be missed.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111456
--- Comment #4 from Andrew Pinski ---
Created attachment 55929
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55929&action=edit
Patch which I am testing
I still need to add testcases.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111456
--- Comment #3 from Andrew Pinski ---
here is another missed optimization:
```
_Bool f2(int a, int b)
{
_Bool t = a == b;
unsigned t1 = a;
unsigned t2 = b;
_Bool b2 = t1 >= t2;
return t & b2;
}
```
This sh
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111456
--- Comment #2 from Andrew Pinski ---
Reduced testcase for the missed optimization before and after the patch:
```
_Bool f(int a)
{
_Bool t = a == 0;
short t1 = a;
_Bool t2 = t1 >= 0;
return t & t2;
}
```
This re
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111456
Andrew Pinski changed:
What|Removed |Added
Ever confirmed|0 |1
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111456
Richard Biener changed:
What|Removed |Added
Target Milestone|--- |14.0