pgsql: Run LLVM verify pass on IR in assert builds.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Run LLVM verify pass on IR in assert builds.
Date: 2024-07-15 09:50:51
Message-ID: E1sTIM7-001ju6-OY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Run LLVM verify pass on IR in assert builds.

The problem fixed by commit 53c8d6c9 would have been noticed if we'd
been running LLVM's verify pass on generated IR. Doing so also reveals
a complaint about incorrect name mangling, fixed here. Only enabled for
LLVM 17+ because it uses the new pass manager API.

Suggested-by: Dmitry Dolgov <9erthalion6(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAFj8pRACpVFr7LMdVYENUkScG5FCYMZDDdSGNU-tch%2Bw98OxYg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8583b1f99340f4de24661dc50ab63ec6965f6759

Modified Files
--------------
src/backend/jit/llvm/llvmjit.c | 5 +++++
src/backend/jit/llvm/llvmjit_expr.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-07-15 15:59:55 pgsql: Doc: minor improvements for plpgsql "Transaction Management" sec
Previous Message Heikki Linnakangas 2024-07-15 08:13:16 Re: pgsql: Replace BackendIds with 0-based ProcNumbers