[LLVMdev] How to use MCJIT by default for a target
david.tweed at arm.com
Wed Sep 19 03:16:50 PDT 2012
On Wed, Sep 19, 2012 at 12:42:18AM +0000, Kaylor, Andrew wrote:
> It seems to me that MCJIT would be a nice default on the platforms that support it. On the other hand, I don't like the idea of the default behavior being platform dependent.
> Perhaps the biggest obstacle to changing the default is that it would have complicated implications for the automated tests. The testing of JIT and MCJIT is already a bit of a mess, and changing the default to MCJIT for some platforms while leaving it as JIT for other platforms would make things considerably worse. I think at this point we'd need to consider cleaning up the JIT/MCJIT nightly tests as a pre-requisite to changing the default, regardless of other considerations.
| I agree that we should clean up JIT/MCJIT tests, then change to MCJIT
|until it pass those tests.
That's a big idea, how this has come up is that there are some tests (in particular profiling) which AREN'T testing JITing itself, but need to use the JIT in order to run stuff. On ARM these don't run with the old JIT but do with the MCJIT. We could just disable the tests, but then we're losing coverage of the profiling stuff due to a "configuration limitation"... Particularly if more such tests are likely to be added, it'd be preferable to figure a way to "use the most robust JIT on the current platform" and run them.
More information about the llvm-dev