diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-15 14:17:35 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-15 14:17:35 +0000 |
commit | 4af351a8f03faff34d8a7b7daedc7efa5c6eaa74 (patch) | |
tree | 087c4f2644cab7d2d923ed965d1fe4f1785ddd09 /gcc/tree-ssa-ccp.c | |
parent | 02eb0b56a79c457913026d59672ca490bce8de8d (diff) | |
download | gcc-4af351a8f03faff34d8a7b7daedc7efa5c6eaa74.tar.gz |
2009-04-15 Richard Guenther <rguenther@suse.de>
PR tree-optimization/39764
* tree-ssa-ccp.c (get_value): Canonicalize value with
canonicalize_float_value.
* g++.dg/torture/pr39764.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146120 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 226fd3dbb27..b9b52cdaff7 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -228,6 +228,8 @@ typedef enum doing the store). */ static prop_value_t *const_val; +static void canonicalize_float_value (prop_value_t *); + /* Dump constant propagation value VAL to file OUTF prefixed by PREFIX. */ static void @@ -387,6 +389,8 @@ get_value (tree var) if (val->lattice_val == UNINITIALIZED) *val = get_default_value (var); + canonicalize_float_value (val); + return val; } |