Re: Fix EXTRACT_LAST_REDUCTION handling of pattern stmts

2019-12-10 Thread Richard Biener
On December 10, 2019 12:28:24 PM GMT+01:00, Richard Sandiford wrote: >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 (.

Fix EXTRACT_LAST_REDUCTION handling of pattern stmts

2019-12-10 Thread Richard Sandiford
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 repl