public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug middle-end/23670] New: Fold does not fold (a|b)&b to b likewise for (a&b) | b to b @ 2005-09-01 2:15 pinskia at gcc dot gnu dot org 2005-09-01 2:15 ` [Bug middle-end/23670] " pinskia at gcc dot gnu dot org 2005-09-17 2:12 ` pinskia at gcc dot gnu dot org 0 siblings, 2 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-09-01 2:15 UTC (permalink / raw) To: gcc-bugs Example: int f(int a, int b) { return (a|9)&9; } int f1(int a, int b) { return (a|9)&9; } This is folded at the rtl level but not at the tree level. -- Summary: Fold does not fold (a|b)&b to b likewise for (a&b) | b to b Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: missed-optimization, TREE Severity: enhancement Priority: P2 Component: middle-end 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 OtherBugsDependingO 19986 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23670 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/23670] Fold does not fold (a|b)&b to b likewise for (a&b) | b to b 2005-09-01 2:15 [Bug middle-end/23670] New: Fold does not fold (a|b)&b to b likewise for (a&b) | b to b pinskia at gcc dot gnu dot org @ 2005-09-01 2:15 ` pinskia at gcc dot gnu dot org 2005-09-17 2:12 ` pinskia at gcc dot gnu dot org 1 sibling, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-09-01 2:15 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-01 02:15 ------- Oh, this was from LLVM again. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23670 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/23670] Fold does not fold (a|b)&b to b likewise for (a&b) | b to b 2005-09-01 2:15 [Bug middle-end/23670] New: Fold does not fold (a|b)&b to b likewise for (a&b) | b to b pinskia at gcc dot gnu dot org 2005-09-01 2:15 ` [Bug middle-end/23670] " pinskia at gcc dot gnu dot org @ 2005-09-17 2:12 ` pinskia at gcc dot gnu dot org 1 sibling, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-09-17 2:12 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-17 02:12 ------- Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-09-17 02:12:28 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23670 ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <bug-23670-6528@http.gcc.gnu.org/bugzilla/>]
* [Bug middle-end/23670] Fold does not fold (a|b)&b to b likewise for (a&b) | b to b [not found] <bug-23670-6528@http.gcc.gnu.org/bugzilla/> @ 2006-02-14 21:08 ` sayle at gcc dot gnu dot org 2006-02-14 23:26 ` pinskia at gcc dot gnu dot org 1 sibling, 0 replies; 5+ messages in thread From: sayle at gcc dot gnu dot org @ 2006-02-14 21:08 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from sayle at gcc dot gnu dot org 2006-02-14 21:08 ------- Subject: Bug 23670 Author: sayle Date: Tue Feb 14 21:08:52 2006 New Revision: 110997 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110997 Log: PR middle-end/23670 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Optimize (X&Y)|Y into (X,Y) and the corresponding symmetry related transformations. (fold_binary) <BIT_AND_EXPR>: Likewise, optimize (X|Y)&Y into (X,Y) and its symmetry related transformations. * gcc.dg/tree-ssa/andor-2.c: New test case. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/andor-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23670 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/23670] Fold does not fold (a|b)&b to b likewise for (a&b) | b to b [not found] <bug-23670-6528@http.gcc.gnu.org/bugzilla/> 2006-02-14 21:08 ` sayle at gcc dot gnu dot org @ 2006-02-14 23:26 ` pinskia at gcc dot gnu dot org 1 sibling, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-02-14 23:26 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from pinskia at gcc dot gnu dot org 2006-02-14 23:26 ------- Fixed, thanks Roger for fixing this one. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23670 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-02-14 23:26 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-09-01 2:15 [Bug middle-end/23670] New: Fold does not fold (a|b)&b to b likewise for (a&b) | b to b pinskia at gcc dot gnu dot org 2005-09-01 2:15 ` [Bug middle-end/23670] " pinskia at gcc dot gnu dot org 2005-09-17 2:12 ` pinskia at gcc dot gnu dot org [not found] <bug-23670-6528@http.gcc.gnu.org/bugzilla/> 2006-02-14 21:08 ` sayle at gcc dot gnu dot org 2006-02-14 23:26 ` pinskia 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).