[llvm-dev] Slow IR compilation/JIT, profiling points to LLVM?
Andres Freund via llvm-dev
llvm-dev at lists.llvm.org
Sat May 5 15:21:54 PDT 2018
Hi,
On 2018-05-06 00:19:42 +0200, edA-qa mort-ora-y wrote:
> On 05/05/18 17:58, Andres Freund wrote:
> > You're building LLVM with assertions enabled
> > (-DLLVM_ENABLE_ASSERTIONS=ON).
> > Some of those are fairly expensive...
> >
>
> Is there another way to get LLVM to check the correctness of my IR
> without the assertions? That's what I'm assuming I need the flag for
> (it's been a long time since I experimented with it)
I don't think so.
> If there is no way I guess I'll have to produce two versions of LLVM. I
> still commonly get type errors in my LLVM IR.
That's what I do (using Orc to JIT parts of SQL queries). By default I
have the debug build of postgres linked against debug LLVM w/
assertions, and the optimized build against an optimized LLVM wo/
assertions (albeit with symbols).
Greetings,
Andres Freund
More information about the llvm-dev
mailing list