pgsql: Apply auto-vectorization to the loop in accum_sum_add()

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Apply auto-vectorization to the loop in accum_sum_add()
Date: 2026-10-13 11:34:40
Message-ID: E1xGamG-00000001RhG-44tB@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Apply auto-vectorization to the loop in accum_sum_add()

Rewrite the loop to a form that compilers are more likely to
auto-vectorize, similar to commits 8870917623 and e3d41d08a1.

Author: Xiangxin Zeng <xiangxin_zeng(at)qq(dot)com>
Reviewed-by: Quan Zongliang <quanzongliang(at)yeah(dot)net>
Reviewed-by: Junwang Zhao <zhjwpku(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/tencent_9DA409B9B2CAA6FFF985C638A28D35C73705@qq.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/158b6d5109fad9d5f0c30693fa85041a1c621fe1

Modified Files
--------------
src/backend/utils/adt/numeric.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Álvaro Herrera 2026-10-13 12:42:51 Re: pgsql: Don't trust NOT NULL on virtual generated columns of partitioned
Previous Message Michael Paquier 2026-10-13 04:48:45 pgsql: Add "own_hash" to pg_stat_kind_info