Skip to content

Commit

Permalink
[llvm] Remove a wasm limitation which no longer exists. (#32163)
Browse files Browse the repository at this point in the history
Co-authored-by: Zoltan Varga <vargaz@gmail.com>
  • Loading branch information
monojenkins and vargaz authored Feb 13, 2020
1 parent 9a37b9e commit 581c3bf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/mono/mono/mini/mini-llvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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), "");

Expand Down

0 comments on commit 581c3bf

Please sign in to comment.