Re: [PATCH] LLVM tuple deforming improvements

2018-07-13 Thread Pierre Ducroquet
On Friday, July 13, 2018 11:08:45 PM CEST Andres Freund wrote: > Hi, > > Thanks for looking at this! > > On 2018-07-13 10:20:42 +0200, Pierre Ducroquet wrote: > > 2) improve the LLVM IR code > > > > The code generator in llvmjit-deform.c currently rely on the LLVM > > optimizer to do the right

Re: [PATCH] LLVM tuple deforming improvements

2018-07-13 Thread Andres Freund
Hi, Thanks for looking at this! On 2018-07-13 10:20:42 +0200, Pierre Ducroquet wrote: > 2) improve the LLVM IR code > > The code generator in llvmjit-deform.c currently rely on the LLVM optimizer > to > do the right thing. For instance, it can generate a lot of empty blocks with > only a

[PATCH] LLVM tuple deforming improvements

2018-07-13 Thread Pierre Ducroquet
Hi As reported in the «effect of JIT tuple deform?» thread, there are for some cases slowdowns when using JIT tuple deforming. I've played with the generated code and with the LLVM optimizer trying to fix that issue, here are the results of my experiments, with the corresponding patches. All