public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23603] New: VRP does not say range for a in a = b == c; is [0,1]
@ 2005-08-28 17:22 pinskia at gcc dot gnu dot org
2005-08-28 17:25 ` [Bug tree-optimization/23603] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-28 17:22 UTC (permalink / raw)
To: gcc-bugs
Example:
int f(int i)
{
int t = i == 1;
int g = t == 2;
int h = g == 3;
return h;
}
We should convert this to return 0 on the tree level but currently we get:
return i == 1 == 2 == 3;
in final_cleanup
--
Summary: VRP does not say range for a in a = b == c; is [0,1]
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23603
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/23603] VRP does not say range for a in a = b == c; is [0,1]
2005-08-28 17:22 [Bug tree-optimization/23603] New: VRP does not say range for a in a = b == c; is [0,1] pinskia at gcc dot gnu dot org
@ 2005-08-28 17:25 ` pinskia at gcc dot gnu dot org
2005-08-28 18:03 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-28 17:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-28 17:22 -------
The fix would be instead of setting the range to varrying in extract_range_from_comparison, set it to
[0,1].
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23603
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/23603] VRP does not say range for a in a = b == c; is [0,1]
2005-08-28 17:22 [Bug tree-optimization/23603] New: VRP does not say range for a in a = b == c; is [0,1] pinskia at gcc dot gnu dot org
2005-08-28 17:25 ` [Bug tree-optimization/23603] " pinskia at gcc dot gnu dot org
@ 2005-08-28 18:03 ` pinskia at gcc dot gnu dot org
2005-08-28 19:43 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-28 18:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-28 17:25 -------
I have a fix.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-08-28 17:25:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23603
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/23603] VRP does not say range for a in a = b == c; is [0,1]
2005-08-28 17:22 [Bug tree-optimization/23603] New: VRP does not say range for a in a = b == c; is [0,1] pinskia at gcc dot gnu dot org
2005-08-28 17:25 ` [Bug tree-optimization/23603] " pinskia at gcc dot gnu dot org
2005-08-28 18:03 ` pinskia at gcc dot gnu dot org
@ 2005-08-28 19:43 ` pinskia at gcc dot gnu dot org
2005-08-29 2:14 ` pinskia at gcc dot gnu dot org
2005-10-01 14:19 ` dnovillo at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-28 19:43 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |23604
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23603
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/23603] VRP does not say range for a in a = b == c; is [0,1]
2005-08-28 17:22 [Bug tree-optimization/23603] New: VRP does not say range for a in a = b == c; is [0,1] pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-08-28 19:43 ` pinskia at gcc dot gnu dot org
@ 2005-08-29 2:14 ` pinskia at gcc dot gnu dot org
2005-10-01 14:19 ` dnovillo at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-29 2:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-29 00:49 -------
This really does depend on PR 23604 as it exposes that latent bug while bootstrapping.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23603
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/23603] VRP does not say range for a in a = b == c; is [0,1]
2005-08-28 17:22 [Bug tree-optimization/23603] New: VRP does not say range for a in a = b == c; is [0,1] pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-08-29 2:14 ` pinskia at gcc dot gnu dot org
@ 2005-10-01 14:19 ` dnovillo at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2005-10-01 14:19 UTC (permalink / raw)
To: gcc-bugs
--
Bug 23603 depends on bug 23604, which changed state.
Bug 23604 Summary: [4.1 Regression] wrong code due to VRP
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23604
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23603
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-10-01 14:19 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-28 17:22 [Bug tree-optimization/23603] New: VRP does not say range for a in a = b == c; is [0,1] pinskia at gcc dot gnu dot org
2005-08-28 17:25 ` [Bug tree-optimization/23603] " pinskia at gcc dot gnu dot org
2005-08-28 18:03 ` pinskia at gcc dot gnu dot org
2005-08-28 19:43 ` pinskia at gcc dot gnu dot org
2005-08-29 2:14 ` pinskia at gcc dot gnu dot org
2005-10-01 14:19 ` dnovillo at gcc dot gnu dot 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).