Enable LLVM link time optimization (LTO) for AOT (#831)
Enable LLVM link time optimization for AOT and enable it by default, and provide "wamrc --disable-llvm-lto" option to disable it. And modify the spec test script, disable it by default when testing spec cases. Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
@ -946,6 +946,11 @@ def compile_wasm_to_aot(wasm_tempfile, aot_tempfile, runner, opts, r):
|
||||
cmd.append("--enable-ref-types")
|
||||
cmd.append("--enable-bulk-memory")
|
||||
|
||||
# disable llvm link time optimization as it might convert
|
||||
# code of tail call into code of dead loop, and stack overflow
|
||||
# exception isn't thrown in several cases
|
||||
cmd.append("--disable-llvm-lto")
|
||||
|
||||
cmd += ["-o", aot_tempfile, wasm_tempfile]
|
||||
|
||||
log("Running: %s" % " ".join(cmd))
|
||||
|
||||
Reference in New Issue
Block a user