]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Tighten an assertion for lane-reducing in transform
authorFeng Xue <fxue@os.amperecomputing.com>
Sun, 16 Jun 2024 05:33:52 +0000 (13:33 +0800)
committerFeng Xue <fxue@os.amperecomputing.com>
Thu, 20 Jun 2024 02:37:00 +0000 (10:37 +0800)
commitecbc96bb2873e453b0bd33d602ce34ad0d9d9cfd
tree04c64799093c0326b601c5bee3b74ad522bb4e5a
parentb9c369d900ccfbd2271028611af3f08b5cf6f998
vect: Tighten an assertion for lane-reducing in transform

According to logic of code nearby the assertion, all lane-reducing operations
should not appear, not just DOT_PROD_EXPR. Since "use_mask_by_cond_expr_p"
treats SAD_EXPR same as DOT_PROD_EXPR, and WIDEN_SUM_EXPR should not be allowed
by the following assertion "gcc_assert (commutative_binary_op_p (...))", so
tighten the assertion.

2024-06-16 Feng Xue <fxue@os.amperecomputing.com>

gcc/
* tree-vect-loop.cc (vect_transform_reduction): Change assertion to
cover all lane-reducing ops.
gcc/tree-vect-loop.cc