From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Apply auto-vectorization to the loop in accum_sum_add()
Date: Tue, 13 Oct 2026 11:34:40 +0000
Message-ID: <E1xGamG-00000001RhG-44tB@gemulon.postgresql.org> (raw)
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@qq.com>
Reviewed-by: Quan Zongliang <quanzongliang@yeah.net>
Reviewed-by: Junwang Zhao <zhjwpku@gmail.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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi
Subject: Re: pgsql: Apply auto-vectorization to the loop in accum_sum_add()
In-Reply-To: <E1xGamG-00000001RhG-44tB@gemulon.postgresql.org>
References: <E1xGamG-00000001RhG-44tB@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox