From: Andrew Pinski Date: Tue, 2 Oct 2012 21:03:37 +0000 (+0000) Subject: simplify-rtx.c (simplify_unary_operation_1 ): Don't optimize a truncat... X-Git-Tag: misc/gccgo-go1_1_2~458 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa607ddad04aa72a7b811d366680783237b8cafe;p=thirdparty%2Fgcc.git simplify-rtx.c (simplify_unary_operation_1 ): Don't optimize a truncate of a mem if it is a vector mode. 2012-10-02 Andrew Pinski * simplify-rtx.c (simplify_unary_operation_1 ): Don't optimize a truncate of a mem if it is a vector mode. From-SVN: r192006 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a8ad41cb28da..932f57391466 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-10-02 Andrew Pinski + + * simplify-rtx.c (simplify_unary_operation_1 ): + Don't optimize a truncate of a mem if it is a vector mode. + 2012-10-02 Alexandre Oliva PR debug/54551 diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index c3e8a0a7e185..acd479876039 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -873,6 +873,7 @@ simplify_unary_operation_1 (enum rtx_code code, enum machine_mode mode, rtx op) /* A truncate of a memory is just loading the low part of the memory if we are not changing the meaning of the address. */ if (GET_CODE (op) == MEM + && !VECTOR_MODE_P (mode) && !MEM_VOLATILE_P (op) && !mode_dependent_address_p (XEXP (op, 0), MEM_ADDR_SPACE (op))) return rtl_hooks.gen_lowpart_no_emit (mode, op);