Обсуждение: pgsql: Run LLVM verify pass on IR in assert builds.

Поиск
Список
Период
Сортировка

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

От
Thomas Munro
Дата:
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@gmail.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(-)