public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "steven at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/19659] GCC does not remove an "if" statement that never triggers. Date: Thu, 27 Jan 2005 21:26:00 -0000 [thread overview] Message-ID: <20050127212625.15917.qmail@sourceware.org> (raw) In-Reply-To: <20050127195923.19659.kazu@cs.umass.edu> ------- Additional Comments From steven at gcc dot gnu dot org 2005-01-27 21:26 ------- The lang hook thinks that with the 'const' the types of 'dest' and 'orig' in may_propagate_copy are not the same. (gdb) 2820 else if (!may_propagate_copy (op, val)) 4: debug_generic_stmt (stmt) = # VUSE <TMT.0D.1464_10>; D.1457_8 = *lengthp2D.1453_7; void (gdb) p may_propagate_copy (op, val) $17 = 0 '\0' In may_propagate_copy : (gdb) next 111 if (mt_dest && mt_orig && mt_dest != mt_orig) (gdb) 113 else if (!lang_hooks.types_compatible_p (type_d, type_o)) (gdb) 156 } (gdb) p debug_generic_expr(dest) lengthp2D.1453_7 $18 = void (gdb) p debug_generic_expr(orig) lengthpD.1449_3 (gdb) p lang_hooks.types_compatible_p (type_d, type_o) $20 = 0 (gdb) p debug_tree (type_d) <pointer_type 0x2a95a301a0 type <integer_type 0x2a95a300d0 unsigned int readonly unsigned SI size <integer_cst 0x2a95890a80 constant invariant 32> unit size <integer_cst 0x2a958905a0 constant invariant 4> align 32 symtab 0 alias set -1 precision 32 min <integer_cst 0x2a95890b70 0> max <integer_cst 0x2a95890b40 4294967295> pointer_to_this <pointer_type 0x2a95a301a0>> unsigned DI size <integer_cst 0x2a95890c30 type <integer_type 0x2a958965b0 bit_size_type> constant invariant 64> unit size <integer_cst 0x2a95890c60 type <integer_type 0x2a958964e0 long unsigned int> constant invariant 8> align 64 symtab 0 alias set -1> $21 = void (gdb) p debug_tree (type_o) <pointer_type 0x2a95988a90 type <integer_type 0x2a95896b60 unsigned int public unsigned SI size <integer_cst 0x2a95890a80 constant invariant 32> unit size <integer_cst 0x2a958905a0 constant invariant 4> align 32 symtab 0 alias set -1 precision 32 min <integer_cst 0x2a95890b70 0> max <integer_cst 0x2a95890b40 4294967295> pointer_to_this <pointer_type 0x2a95988a90>> unsigned DI size <integer_cst 0x2a95890c30 type <integer_type 0x2a958965b0 bit_size_type> constant invariant 64> unit size <integer_cst 0x2a95890c60 type <integer_type 0x2a958964e0 long unsigned int> constant invariant 8> align 64 symtab 0 alias set -1> $22 = void -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19659
next prev parent reply other threads:[~2005-01-27 21:26 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-01-27 19:59 [Bug tree-optimization/19659] New: GCC does " kazu at cs dot umass dot edu 2005-01-27 20:24 ` [Bug tree-optimization/19659] GCC does not " steven at gcc dot gnu dot org 2005-01-27 20:34 ` pinskia at gcc dot gnu dot org 2005-01-27 21:26 ` steven at gcc dot gnu dot org [this message] 2005-02-17 14:33 ` pinskia at gcc dot gnu dot org 2005-02-19 4:02 ` dnovillo at gcc dot gnu dot org 2005-02-19 5:45 ` pinskia at gcc dot gnu dot org 2005-03-16 12:32 ` steven at gcc dot gnu dot org 2005-03-23 19:59 ` pinskia at gcc dot gnu dot org 2005-04-13 18:11 ` pinskia at gcc dot gnu dot org 2005-06-04 17:00 ` dnovillo 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=20050127212625.15917.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).