public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/49984] New: VRP does not handle BIT_XOR_EXPR
@ 2011-08-05 7:40 rguenth at gcc dot gnu.org
2011-08-05 8:10 ` [Bug tree-optimization/49984] " rguenth at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-05 7:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49984
Summary: VRP does not handle BIT_XOR_EXPR
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rguenth@gcc.gnu.org
In
int f(int x)
{
if (x >= 0 && x <= 3)
{
x = x ^ 3;
x = x & 3;
}
return x;
}
the x = x & 3 statement should be removed by simplify_bit_ops_using_ranges,
but propagation does not handle BIT_XOR_EXPR and thus the input range to
this statement is VARYING.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/49984] VRP does not handle BIT_XOR_EXPR
2011-08-05 7:40 [Bug tree-optimization/49984] New: VRP does not handle BIT_XOR_EXPR rguenth at gcc dot gnu.org
@ 2011-08-05 8:10 ` rguenth at gcc dot gnu.org
2011-08-05 10:18 ` rguenth at gcc dot gnu.org
2011-08-05 10:27 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-05 8:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49984
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.08.05 08:09:28
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-05 08:09:28 UTC ---
I have a patch.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/49984] VRP does not handle BIT_XOR_EXPR
2011-08-05 7:40 [Bug tree-optimization/49984] New: VRP does not handle BIT_XOR_EXPR rguenth at gcc dot gnu.org
2011-08-05 8:10 ` [Bug tree-optimization/49984] " rguenth at gcc dot gnu.org
@ 2011-08-05 10:18 ` rguenth at gcc dot gnu.org
2011-08-05 10:27 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-05 10:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49984
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-05 10:16:53 UTC ---
Author: rguenth
Date: Fri Aug 5 10:16:48 2011
New Revision: 177425
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177425
Log:
2011-08-05 Richard Guenther <rguenther@suse.de>
PR tree-optimization/49984
* tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
* gcc.dg/tree-ssa/vrp59.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/vrp59.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vrp.c
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/49984] VRP does not handle BIT_XOR_EXPR
2011-08-05 7:40 [Bug tree-optimization/49984] New: VRP does not handle BIT_XOR_EXPR rguenth at gcc dot gnu.org
2011-08-05 8:10 ` [Bug tree-optimization/49984] " rguenth at gcc dot gnu.org
2011-08-05 10:18 ` rguenth at gcc dot gnu.org
@ 2011-08-05 10:27 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-05 10:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49984
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-05 10:26:08 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-05 10:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-05 7:40 [Bug tree-optimization/49984] New: VRP does not handle BIT_XOR_EXPR rguenth at gcc dot gnu.org
2011-08-05 8:10 ` [Bug tree-optimization/49984] " rguenth at gcc dot gnu.org
2011-08-05 10:18 ` rguenth at gcc dot gnu.org
2011-08-05 10:27 ` rguenth 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).