public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at tat dot physik dot uni-tuebingen dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/23326] [4.0 Regression] Wrong code from forwprop Date: Thu, 11 Aug 2005 17:43:00 -0000 [thread overview] Message-ID: <20050811174315.21377.qmail@sourceware.org> (raw) In-Reply-To: <20050811152012.23326.rguenth@gcc.gnu.org> ------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de 2005-08-11 17:43 ------- I'll do that. Though + /* If we don't have <NE_EXPR/NE_EXPR x INT_CST>, then we cannot + optimize this case. */ + if ((cond_code == NE_EXPR || cond_code == EQ_EXPR) + && TREE_CODE (TREE_OPERAND (cond, 1)) != INTEGER_CST) + continue; should probably read + /* If we don't have <NE_EXPR/EQ_EXPR x INT_CST>, then we cannot + optimize this case. */ + if (!((cond_code == NE_EXPR || cond_code == EQ_EXPR) + && TREE_CODE (TREE_OPERAND (cond, 1)) == INTEGER_CST)) + continue; because else we might get f.i. LE_EXPR passing through? Maybe the little context confuses me here, though. I'll have a look before testing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23326
next prev parent reply other threads:[~2005-08-11 17:43 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-08-11 15:20 [Bug tree-optimization/23326] New: " rguenth at gcc dot gnu dot org 2005-08-11 15:21 ` [Bug tree-optimization/23326] " rguenth at gcc dot gnu dot org 2005-08-11 15:29 ` pinskia at gcc dot gnu dot org 2005-08-11 15:51 ` pinskia at gcc dot gnu dot org 2005-08-11 16:03 ` pinskia at gcc dot gnu dot org 2005-08-11 17:43 ` rguenth at tat dot physik dot uni-tuebingen dot de [this message] 2005-08-11 17:45 ` pinskia at physics dot uc dot edu 2005-08-11 18:05 ` belyshev at depni dot sinp dot msu dot ru 2005-08-12 10:57 ` rguenth at gcc dot gnu dot org 2005-08-22 12:18 ` pinskia at gcc dot gnu dot org 2005-09-01 15:11 ` matz at suse dot de 2005-09-01 15:18 ` rguenth at gcc dot gnu dot org 2005-09-03 19:55 ` cvs-commit at gcc dot gnu dot org 2005-09-03 19:55 ` rguenth at gcc dot gnu dot org [not found] <bug-23326-10053@http.gcc.gnu.org/bugzilla/> 2005-11-08 16:44 ` pinskia at gcc dot gnu dot org 2006-05-17 19:17 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050811174315.21377.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).