tree-optimization/97085 - fold some trivial bool vector ?:
authorRichard Biener <rguenther@suse.de>
Thu, 24 Sep 2020 08:14:33 +0000 (10:14 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 24 Sep 2020 08:20:41 +0000 (10:20 +0200)
commit10843f8303509fcba880c6c05c08e4b4ccd24f36
treef31b1e91b04fde83788a442b217e4ec6db7b5f3d
parent7e437162001f258c8db4eae25da3bca812dd557a
tree-optimization/97085 - fold some trivial bool vector ?:

The following aovids the ICE in the testcase by doing some additional
simplification of VEC_COND_EXPRs for VECTOR_BOOLEAN_TYPE_P which
we don't really expect, esp. when they are not classical vectors,
thus AVX512 or SVE masks.

2020-09-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97085
* match.pd (mask ? { false,..} : { true, ..} -> ~mask): New.

* gcc.dg/vect/pr97085.c: New testcase.
gcc/match.pd
gcc/testsuite/gcc.dg/vect/pr97085.c [new file with mode: 0644]