This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37421] ICE in vn_reference_insert_pieces at tree-ssa-sccvn.c:1131
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Sep 2008 15:14:02 -0000
- Subject: [Bug tree-optimization/37421] ICE in vn_reference_insert_pieces at tree-ssa-sccvn.c:1131
- References: <bug-37421-91@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from rguenth at gcc dot gnu dot org 2008-09-08 15:14 -------
It actually is the correct fix. We valueize expressions in-place, and
copy visiting doesn't follow the chain up until a constant. So we have
a = 0;
= VIEW_CONVERT_EXPR <a>;
b = a;
= VIEW_CONVERT_EXPR <b>;
we first insert VIEW_CONVERT_EXPR <0> in the table, then during processing
of VIEW_CONVERT_EXPR <b> we valueize it to VIEW_CONVERT_EXPR <a> which is
not in the table. During insertion we valueize again, now getting
VIEW_CONVERT_EXPR <0> which is already in the table so we hit the assert.
Bootstrapping and testing the fix now.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37421