* tree-sra.c (generate_element_init): Remove any useless conversions.
From-SVN: r84057
This commit is contained in:
parent
73d6ddef27
commit
51fa2e5fc3
@ -1,5 +1,7 @@
|
|||||||
2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
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
|
* gimplify.c (gimplify_conversion): Remove stripping useless
|
||||||
conversions from here.
|
conversions from here.
|
||||||
(gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
|
(gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
|
||||||
|
@ -1513,10 +1513,13 @@ generate_element_zero (struct sra_elt *elt, tree *list_p)
|
|||||||
static void
|
static void
|
||||||
generate_element_init (struct sra_elt *elt, tree init, tree *list_p)
|
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;
|
struct sra_elt *sub;
|
||||||
tree t;
|
tree t;
|
||||||
|
|
||||||
|
STRIP_USELESS_TYPE_CONVERSION (init);
|
||||||
|
init_code = TREE_CODE (init);
|
||||||
|
|
||||||
if (elt->is_scalar)
|
if (elt->is_scalar)
|
||||||
{
|
{
|
||||||
if (elt->replacement)
|
if (elt->replacement)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user