re PR tree-optimization/87546 (Gcc miscompiles at -O3 on valid code)
authorJakub Jelinek <jakub@redhat.com>
Sat, 17 Nov 2018 15:10:48 +0000 (16:10 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 17 Nov 2018 15:10:48 +0000 (16:10 +0100)
commitd11be094c716885475a4a1562a967e4a127ecece
tree7abff9ebdb6092dccec9a861100cecddbbf1f9ed
parente14aba114fb0199d12b06934d9e9af8252cce1c2
re PR tree-optimization/87546 (Gcc miscompiles at -O3 on valid code)

PR tree-optimization/87546
* tree-vect-patterns.c (vect_look_through_possible_promotion): Add
min_precision variable, initially set it to orig_precision, only does
something if op_type's precision is <= min_precision and update
min_precision whenever calling set_op.

* gcc.dg/vect/O3-pr87546.c: New test.

From-SVN: r266237
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/O3-pr87546.c [new file with mode: 0644]
gcc/tree-vect-patterns.c