aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-07-28 10:26:51 +0200
committerMartin Liska <marxin@gcc.gnu.org>2016-07-28 08:26:51 +0000
commite5f5bf35d760274a0564e25da3931ec31d29d336 (patch)
tree1adcdc960363345cf1034c6dc01fb4ba3ee1491e /gcc/combine.c
parent5cb6b47352b0f20bf309c2ba684e4cfc1add2b84 (diff)
downloadgcc-e5f5bf35d760274a0564e25da3931ec31d29d336.zip
gcc-e5f5bf35d760274a0564e25da3931ec31d29d336.tar.gz
gcc-e5f5bf35d760274a0564e25da3931ec31d29d336.tar.bz2
Do not allow make_compound_operation for vector mode
* g++.dg/vect/pr70944.cc: New test. PR rtl-optimization/70944 * combine.c (make_compound_operation): Do not allow make_compound_operation for vector mode From-SVN: r238808
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 1becc3c..93c1710 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -7770,6 +7770,10 @@ make_compound_operation (rtx x, enum rtx_code in_code)
rtx tem;
const char *fmt;
+ /* PR rtl-optimization/70944. */
+ if (VECTOR_MODE_P (mode))
+ return x;
+
/* Select the code to be used in recursive calls. Once we are inside an
address, we stay there. If we have a comparison, set to COMPARE,
but once inside, go back to our default of SET. */