https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114763
Andrew Pinski changed:
What|Removed |Added
Severity|normal |enhancement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114763
--- Comment #2 from hanwei (K) ---
(In reply to Andrew Pinski from comment #1)
> Note only the second case has if's 2 sides which are the same;
> it is basically `a ? b : (c ? d : d)`.
>
> While the first case you have `a ? b : (c ? d : b)`
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114763
--- Comment #3 from hanwei (K) ---
(In reply to Andrew Pinski from comment #1)
> Note only the second case has if's 2 sides which are the same;
> it is basically `a ? b : (c ? d : d)`.
>
> While the first case you have `a ? b : (c ? d : b)`
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114763
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114753
--- Comment #7 from GCC Commits ---
The master branch has been updated by Jakub Jelinek :
https://gcc.gnu.org/g:6c152c9db3b5b9d43e12846fb7a44977c0b65fc2
commit r14-10012-g6c152c9db3b5b9d43e12846fb7a44977c0b65fc2
Author: Jakub Jelinek
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114763
Bug ID: 114763
Summary: Wduplicated-branches just check last else if-else
case?
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114755
--- Comment #2 from GCC Commits ---
The master branch has been updated by Jakub Jelinek :
https://gcc.gnu.org/g:82d6d385f9708fb6d5e2a2bacd003155cfc41c08
commit r14-10013-g82d6d385f9708fb6d5e2a2bacd003155cfc41c08
Author: Jakub Jelinek
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114753
Jakub Jelinek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114755
Jakub Jelinek changed:
What|Removed |Added
Resolution|--- |FIXED
Status|ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114761
Richard Biener changed:
What|Removed |Added
Last reconfirmed||2024-04-18
Ever confirmed|0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114749
--- Comment #5 from rguenther at suse dot de ---
On Wed, 17 Apr 2024, juzhe.zhong at rivai dot ai wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114749
>
> --- Comment #4 from JuzheZhong ---
> Hi, Patrick.
>
> It seems that Richard
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114760
--- Comment #1 from Richard Biener ---
I think it's also a missed canonicalization for x << 1 vs. x + x (and 2*x).
unsigned a, b, c;
void foo (unsigned x)
{
a = x << 1;
b = x + x;
c = 2 * x;
}
x + x gets folded to 2 * x before
101 - 112 of 112 matches
Mail list logo