re PR tree-optimization/80631 (Compiling with -O3 -mavx2 gives wrong code)
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Dec 2017 07:39:24 +0000 (08:39 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Dec 2017 07:39:24 +0000 (08:39 +0100)
commit497742efce59a3296461199c16bbc520154d0e2e
treed6976d62c14a4bd27f40cf6ad77f52c3d023b2ce
parent6e02c507cc780dc0902c2cdabb22519c20c8145d
re PR tree-optimization/80631 (Compiling with -O3 -mavx2 gives wrong code)

PR tree-optimization/80631
* tree-vect-loop.c (vect_create_epilog_for_reduction): Compare
induc_code against MAX_EXPR or MIN_EXPR instead of reduc_fn against
IFN_REDUC_MAX or IFN_REDUC_MIN.

From-SVN: r255804
gcc/ChangeLog
gcc/tree-vect-loop.c