public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/114725] New: Missed optimization: more precise range for and
@ 2024-04-15 17:47 xxs_chy at outlook dot com
2024-04-15 20:15 ` [Bug tree-optimization/114725] " pinskia at gcc dot gnu.org
2024-04-15 20:21 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: xxs_chy at outlook dot com @ 2024-04-15 17:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114725
Bug ID: 114725
Summary: Missed optimization: more precise range for and
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: xxs_chy at outlook dot com
Target Milestone: ---
Godbolt link: https://godbolt.org/z/vTb1Y5b39
```
bool src(int offset) {
if(offset > 128) {
return 0;
} else {
dummy();
return (offset & -9) == 258;
}
}
```
can be folded to:
```
bool tgt(int offset) {
if(offset > 128) {
return 0;
} else {
dummy();
return 0;
}
}
```
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/114725] Missed optimization: more precise range for and
2024-04-15 17:47 [Bug tree-optimization/114725] New: Missed optimization: more precise range for and xxs_chy at outlook dot com
@ 2024-04-15 20:15 ` pinskia at gcc dot gnu.org
2024-04-15 20:21 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-15 20:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114725
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Severity|normal |enhancement
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/114725] Missed optimization: more precise range for and
2024-04-15 17:47 [Bug tree-optimization/114725] New: Missed optimization: more precise range for and xxs_chy at outlook dot com
2024-04-15 20:15 ` [Bug tree-optimization/114725] " pinskia at gcc dot gnu.org
@ 2024-04-15 20:21 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-15 20:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114725
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2024-04-15
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-15 20:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-15 17:47 [Bug tree-optimization/114725] New: Missed optimization: more precise range for and xxs_chy at outlook dot com
2024-04-15 20:15 ` [Bug tree-optimization/114725] " pinskia at gcc dot gnu.org
2024-04-15 20:21 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).