public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/83541] Missed optimization with int overflow
[not found] <bug-83541-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-12 12:30 ` pinskia at gcc dot gnu.org
2022-01-03 9:24 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-12 12:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83541
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Keywords| |needs-bisection
Known to work| |12.0
Known to fail| |11.2.0
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Seems to be fixed on the trunk.
Folding statement: if (x_2(D) == 2147483647)
Visiting conditional with predicate: if (x_2(D) == 2147483647)
With known ranges
x_2(D): int VARYING
Predicate evaluates to: DON'T KNOW
Matching expression match.pd:2077, gimple-match.c:819
Matching expression match.pd:2080, gimple-match.c:892
Matching expression match.pd:2087, gimple-match.c:952
Not folded
Folding statement: _4 = x_2(D) + 1;
gimple_simplified to _4 = -2147483648;
Folded into: _4 = -2147483648;
Folding statement: // predicted unlikely by early return (on trees) predictor.
Not folded
Folding PHI node: _1 = PHI <_4(3), 42(2)>
Queued PHI for removal. Folds to: 42
Folding statement: return _1;
Folded into: return 42;
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/83541] Missed optimization with int overflow
[not found] <bug-83541-4@http.gcc.gnu.org/bugzilla/>
2021-12-12 12:30 ` [Bug tree-optimization/83541] Missed optimization with int overflow pinskia at gcc dot gnu.org
@ 2022-01-03 9:24 ` rguenth at gcc dot gnu.org
2022-01-12 15:28 ` cvs-commit at gcc dot gnu.org
2022-01-12 15:29 ` amacleod at redhat dot com
3 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-03 9:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83541
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amacleod at redhat dot com
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
probably the ranger equivalence stuff handles this now. Add a testcase and
close the bug?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/83541] Missed optimization with int overflow
[not found] <bug-83541-4@http.gcc.gnu.org/bugzilla/>
2021-12-12 12:30 ` [Bug tree-optimization/83541] Missed optimization with int overflow pinskia at gcc dot gnu.org
2022-01-03 9:24 ` rguenth at gcc dot gnu.org
@ 2022-01-12 15:28 ` cvs-commit at gcc dot gnu.org
2022-01-12 15:29 ` amacleod at redhat dot com
3 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-01-12 15:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83541
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andrew Macleod <amacleod@gcc.gnu.org>:
https://gcc.gnu.org/g:75845d584f490c294d40908168e5721adc38145d
commit r12-6529-g75845d584f490c294d40908168e5721adc38145d
Author: Andrew MacLeod <amacleod@redhat.com>
Date: Tue Jan 11 14:58:35 2022 -0500
Add testcase for PR 83541.
Ranger now performs this optimzation.
PR tree-optimization/83541
gcc/testsuite
* g++.dg/pr83541.C: New.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/83541] Missed optimization with int overflow
[not found] <bug-83541-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2022-01-12 15:28 ` cvs-commit at gcc dot gnu.org
@ 2022-01-12 15:29 ` amacleod at redhat dot com
3 siblings, 0 replies; 4+ messages in thread
From: amacleod at redhat dot com @ 2022-01-12 15:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83541
Andrew Macleod <amacleod at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Andrew Macleod <amacleod at redhat dot com> ---
fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-12 15:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-83541-4@http.gcc.gnu.org/bugzilla/>
2021-12-12 12:30 ` [Bug tree-optimization/83541] Missed optimization with int overflow pinskia at gcc dot gnu.org
2022-01-03 9:24 ` rguenth at gcc dot gnu.org
2022-01-12 15:28 ` cvs-commit at gcc dot gnu.org
2022-01-12 15:29 ` amacleod at redhat dot com
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).