public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/23673] New: fold does not fold (a^b) != 0 to a != b
@ 2005-09-01  2:31 pinskia at gcc dot gnu dot org
  2005-09-17  2:12 ` [Bug middle-end/23673] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-01  2:31 UTC (permalink / raw)
  To: gcc-bugs

These two functions should be the same on the tree level but are not:
int f(int a, int b)
{
  return (a^b) != 0;
}
int f1(int a, int b)
{
  return a != b;
}

They do result in the same asm though.

Another one from LLVM.

-- 
           Summary: fold does not fold (a^b) != 0 to a != 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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23673


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <bug-23673-6528@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-02-25 23:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-01  2:31 [Bug middle-end/23673] New: fold does not fold (a^b) != 0 to a != b pinskia at gcc dot gnu dot org
2005-09-17  2:12 ` [Bug middle-end/23673] " pinskia at gcc dot gnu dot org
     [not found] <bug-23673-6528@http.gcc.gnu.org/bugzilla/>
2005-11-30 16:44 ` pinskia at gcc dot gnu dot org
2005-12-02  3:17 ` pinskia at gcc dot gnu dot org
2005-12-02 18:12 ` pinskia at gcc dot gnu dot org
2005-12-04  4:28 ` pinskia at gcc dot gnu dot org
2006-02-25 23:36 ` sayle at gcc dot gnu dot org
2006-02-26  1:29 ` roger at eyesopen 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).