From: monojenkins Date: Thu, 13 Feb 2020 08:37:09 +0000 (-0500) Subject: [llvm] Remove a wasm limitation which no longer exists. (#32163) X-Git-Tag: submit/tizen/20210909.063632~9805 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=581c3bf1f1e2d2408b6279bfb6d6ee7cc3557b31;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [llvm] Remove a wasm limitation which no longer exists. (#32163) Co-authored-by: Zoltan Varga --- diff --git a/src/mono/mono/mini/mini-llvm.c b/src/mono/mono/mini/mini-llvm.c index 68503f3..5347014 100644 --- a/src/mono/mono/mini/mini-llvm.c +++ b/src/mono/mono/mini/mini-llvm.c @@ -3407,12 +3407,9 @@ emit_init_method (EmitContext *ctx) indexes [1] = LLVMConstInt (LLVMInt32Type (), cfg->method_index, FALSE); inited_var = LLVMBuildLoad (builder, LLVMBuildGEP (builder, ctx->module->inited_var, indexes, 2, ""), "is_inited"); - //WASM doesn't support the "llvm.expect.i8" intrinsic -#ifndef TARGET_WASM args [0] = inited_var; args [1] = LLVMConstInt (LLVMInt8Type (), 1, FALSE); inited_var = LLVMBuildCall (ctx->builder, get_intrins (ctx, INTRINS_EXPECT_I8), args, 2, ""); -#endif cmp = LLVMBuildICmp (builder, LLVMIntEQ, inited_var, LLVMConstInt (LLVMTypeOf (inited_var), 0, FALSE), "");