MCJIT emitting optimization diagnostics on stdout/stderr

Hello,

Starting with LLVM 3.8.x, we get some diagnostic printouts when JITting
some functions, e.g.:

  remark: <unknown>:0:0: loop not vectorized: cannot prove it is safe to
reorder memory operations

Is it normal to get those by default? Is there a well-defined way to
disable them?

Regards

Antoine.

It looks like DK_OptimizationRemarkAnalysisAliasing isn't handled in
llvm::isDiagnosticEnabled(), hence those messages are always
unconditionally output...

Regards

Antoine.