[LLVMdev] Heuristic for choosing between MCJIT and Interpreter

Josh Klontz josh.klontz at gmail.com
Sat Aug 9 13:33:24 PDT 2014


I'm facing a situation where I have generated IR that only needs to be
executed once. I've noticed for simple IR it's faster to run the
interpreter on it, but for complex IR it's much better to JIT compile and
execute it. I'm seeking suggestions for a good heuristic to decide which
approach to take for any given IR. I'm leaning in favor of deciding based
on the presence/absence of loops.
-Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140809/f3049acd/attachment.html>


More information about the llvm-dev mailing list