]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/100292 - avoid invalid GIMPLE from vector lowering
authorRichard Biener <rguenther@suse.de>
Wed, 28 Apr 2021 08:41:41 +0000 (10:41 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 28 Apr 2021 10:03:49 +0000 (12:03 +0200)
commitf7ee6a1e8ac62950dd32874bf75e748a2895d595
treeaaf3072b3e68b2574027e52d392f86bcdf21ff03
parentf9d670128f6e6b3631a2db575ddf6f19fa43afdc
tree-optimization/100292 - avoid invalid GIMPLE from vector lowering

We have to avoid folding the condition when building a COND_EXPR
since we no longer gimplify the whole thing.  The folding done
at COND_EXPR build time will deal with possible simplifications.

2021-04-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/100292
* tree-vect-generic.c (expand_vector_condition): Do not fold
the comparisons.

* gcc.dg/pr100292.c: New testcase.
gcc/testsuite/gcc.dg/pr100292.c [new file with mode: 0644]
gcc/tree-vect-generic.c