This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/63914] ICE in set_lattice_value, at tree-ssa-ccp.c:517
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Nov 2014 14:13:28 +0000
- Subject: [Bug tree-optimization/63914] ICE in set_lattice_value, at tree-ssa-ccp.c:517
- Auto-submitted: auto-generated
- References: <bug-63914-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63914
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
We try to transition from
{ Inf, 0.0, 0.0, 0.0 } * { 0.0, 0.0, 0.0, 0.0 } == { Nan, 0.0, 0.0, 0.0 }
to
VARYING * { 0.0, 0.0, 0.0, 0.0 } == { 0.0, 0.0, 0.0, 0.0 }
which is... "interesting". -ffast-math allows for this as it considers
-ffinite-math-only for which the first constant folding returns an
"invalid" number. Hmm.
We have canonicalize_value that is supposed to catch this but it fails to
handle VECTOR_CSTs or COMPLEX_CSTs properly.