]> git.ipfire.org Git - thirdparty/gcc.git/commit
Extend is_cond_scalar_reduction to handle nop_expr after/before scalar reduction...
authorliuhongt <hongtao.liu@intel.com>
Wed, 6 Jan 2021 08:33:27 +0000 (16:33 +0800)
committerliuhongt <hongtao.liu@intel.com>
Tue, 1 Jun 2021 01:58:14 +0000 (09:58 +0800)
commit28daadc98094501175c9dfe4a985871fa6aa4f94
tree54832e2f67bb6faa9e11f4c0f7df11b35a98183c
parent715914d3f9e4e40af58d22103c7650cdd720ef92
Extend is_cond_scalar_reduction to handle nop_expr after/before scalar reduction.[PR98365]

gcc/ChangeLog:

PR tree-optimization/98365
* tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
(is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
(convert_scalar_cond_reduction): Ditto.
(predicate_scalar_phi): Ditto.

gcc/testsuite/ChangeLog:

PR tree-optimization/98365
* gcc.target/i386/pr98365.c: New test.
gcc/testsuite/gcc.target/i386/pr98365.c [new file with mode: 0644]
gcc/tree-if-conv.c