This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/36978] [4.4 Regression] ICE in gimple_cond_set_lhs for -O2 -funswitch-loops after tuples merge
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jul 2008 23:59:05 -0000
- Subject: [Bug tree-optimization/36978] [4.4 Regression] ICE in gimple_cond_set_lhs for -O2 -funswitch-loops after tuples merge
- References: <bug-36978-4503@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-07-30 23:59 -------
(gdb) p debug_generic_expr (lhs)
(_Bool) flag_7(D)
In tree_may_unswitch_on, we have:
126 cond = fold_build2 (gimple_cond_code (stmt), boolean_type_node,
127 gimple_cond_lhs (stmt), gimple_cond_rhs (stmt));
But this could produce an extra NOP_EXPR as fold tries to be type strict rather
using the gimple type system.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36978