On 1/29/20 12:11 AM, José Luis García Pallero wrote:
> I'm going to compile the alpha version 5.1.90. Which is the status of
> the JIT compiler? Is safe to use it?
To my knowledge there has been little/no work on the JIT project  in
the past years. If Octave is configured/compiled with an appropriate
llvm version, some for-loops could be speed up, but I cannot provide a
reliable guide how to do it.
These patches, however, never found their way to the development
branch as far as I know. Not to mention the stable branch (since
the question is about 5.x).
If Octave is configured/compiled with an appropriate llvm version, some for-loops could be speed up, but I cannot provide a reliable guide how to do it.
Unless you try to (update and) use the above-mentioned patches
(not sure they apply to stable), you would have to use a very old
LLVM version. Something like LLVM 3.8 would be my first choice.
Furthermore, even if you manage to build it, the existing jit is
only able to speed some very simple loops.
And, since José asks whether it is safe, I should add that there
are, as far as I know, some very serious problems. In
particular, exceptions are not handled properly and simply crash
octave. (Not sure if Harvey's patches solve that.)
So, no, unless things have changed (a lot) rather recently, I
wouldn't say that it is safe.