aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-12-10 12:20:02 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-12-10 12:20:02 +0000
commit9ec35478ccf0f3539988a054b7996278706a7710 (patch)
tree9974f682114645a158aad0e51d9eb6a784cdc345 /gcc/omp-low.c
parentca49c831ca9c042db6cea746c21040c1ada18abb (diff)
downloadgcc-9ec35478ccf0f3539988a054b7996278706a7710.zip
gcc-9ec35478ccf0f3539988a054b7996278706a7710.tar.gz
gcc-9ec35478ccf0f3539988a054b7996278706a7710.tar.bz2
Fix EXTRACT_LAST_REDUCTION handling of pattern stmts
Unlike most vector ops, extract-last reductions replace the original scalar code in-situ rather than adding an adjacent vector implementation. I.e.: dest_1 = COND_EXPR <...>; becomes: dest_1 = .EXTRACT_LAST (...); gcc.dg/vect/vect-cond-reduc-4.c was ICEing for SVE because we tried to replace the pattern statement in this way, rather than replacing the original scalar statement. 2019-12-10 Richard Sandiford <richard.sandiford@arm.com> gcc/ * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the original scalar statement rather than a pattern statement. (vectorizable_condition): Likewise, in the handling of extract-last reductions. From-SVN: r279162
Diffstat (limited to 'gcc/omp-low.c')
0 files changed, 0 insertions, 0 deletions