From: Segher Boessenkool Date: Thu, 11 Dec 2014 14:29:14 +0000 (+0100) Subject: combine.c (try_combine): Do not allow combining a PARALLEL I2 with a register move... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=08e39a540603d6a41caacdc340015c063997b2a2;p=gcc.git combine.c (try_combine): Do not allow combining a PARALLEL I2 with a register move I3 if that I2 is an asm. * combine.c (try_combine): Do not allow combining a PARALLEL I2 with a register move I3 if that I2 is an asm. From-SVN: r218623 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 530147080b9..fa79ce977b9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-12-11 Segher Boessenkool + + * combine.c (try_combine): Do not allow combining a PARALLEL I2 + with a register move I3 if that I2 is an asm. + 2014-12-11 Kyrylo Tkachov * config/arm/arm_neon.h (vrndqn_f32): Rename to... diff --git a/gcc/combine.c b/gcc/combine.c index 9ed03be2219..c95b493886b 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -2716,6 +2716,13 @@ try_combine (rtx_insn *i3, rtx_insn *i2, rtx_insn *i1, rtx_insn *i0, SET_DEST (XVECEXP (p2, 0, i)))) break; + /* Make sure this PARALLEL is not an asm. We do not allow combining + that usually (see can_combine_p), so do not here either. */ + for (i = 0; i < XVECLEN (p2, 0); i++) + if (GET_CODE (XVECEXP (p2, 0, i)) == SET + && GET_CODE (SET_SRC (XVECEXP (p2, 0, i))) == ASM_OPERANDS) + break; + if (i == XVECLEN (p2, 0)) for (i = 0; i < XVECLEN (p2, 0); i++) if (GET_CODE (XVECEXP (p2, 0, i)) == SET