diff options
author | Richard Guenther <rguenther@suse.de> | 2011-12-21 09:22:58 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-12-21 09:22:58 +0000 |
commit | b200cc3fccb049b5335c3e9310b4ab7cf4b0075c (patch) | |
tree | 81fb597d11aae860b99eb2e662b300a9ae338c19 /gcc/tree-outof-ssa.c | |
parent | 8e1d97d43b4230fa8a4bd78f73b0817864082493 (diff) | |
download | gcc-b200cc3fccb049b5335c3e9310b4ab7cf4b0075c.zip gcc-b200cc3fccb049b5335c3e9310b4ab7cf4b0075c.tar.gz gcc-b200cc3fccb049b5335c3e9310b4ab7cf4b0075c.tar.bz2 |
re PR lto/41159 ([LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225)
2011-12-21 Richard Guenther <rguenther@suse.de>
PR lto/41159
* tree-outof-ssa.c (insert_value_copy_on_edge): Use the
mode of the pseudo as destination mode. Only assert that
is equal to the promoted mode of the decl if it is a REG.
From-SVN: r182570
Diffstat (limited to 'gcc/tree-outof-ssa.c')
-rw-r--r-- | gcc/tree-outof-ssa.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-outof-ssa.c b/gcc/tree-outof-ssa.c index 45060f7..f52b260 100644 --- a/gcc/tree-outof-ssa.c +++ b/gcc/tree-outof-ssa.c @@ -237,9 +237,10 @@ insert_value_copy_on_edge (edge e, int dest, tree src, source_location locus) var = SSA_NAME_VAR (partition_to_var (SA.map, dest)); src_mode = TYPE_MODE (TREE_TYPE (src)); - dest_mode = promote_decl_mode (var, &unsignedp); + dest_mode = GET_MODE (SA.partition_to_pseudo[dest]); gcc_assert (src_mode == TYPE_MODE (TREE_TYPE (var))); - gcc_assert (dest_mode == GET_MODE (SA.partition_to_pseudo[dest])); + gcc_assert (!REG_P (SA.partition_to_pseudo[dest]) + || dest_mode == promote_decl_mode (var, &unsignedp)); if (src_mode != dest_mode) { |