* tree-sra.c (generate_element_init): Remove any useless conversions.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Sat, 3 Jul 2004 13:56:38 +0000 (13:56 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 3 Jul 2004 13:56:38 +0000 (09:56 -0400)
From-SVN: r84057

gcc/ChangeLog
gcc/tree-sra.c

index b9a289db11ae747ab93888b1af542b917d3710e9..50cc747ec22588b86ed4470cf87cb4b88a72bedf 100644 (file)
@@ -1,4 +1,6 @@
 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * tree-sra.c (generate_element_init): Remove any useless conversions.
        
        * gimplify.c (gimplify_conversion): Remove stripping useless
        conversions from here.
index 44f06503aaf7ae599fbea9c2aa25e5b15a2d106c..0f04fcb2a2ec67001cc6144ac200565913a94bc7 100644 (file)
@@ -1513,10 +1513,13 @@ generate_element_zero (struct sra_elt *elt, tree *list_p)
 static void
 generate_element_init (struct sra_elt *elt, tree init, tree *list_p)
 {
-  enum tree_code init_code = TREE_CODE (init);
+  enum tree_code init_code;
   struct sra_elt *sub;
   tree t;
 
+  STRIP_USELESS_TYPE_CONVERSION (init);
+  init_code = TREE_CODE (init);
+
   if (elt->is_scalar)
     {
       if (elt->replacement)