未验证 提交 e87e32f5 编写于 作者: M monojenkins 提交者: GitHub

[llvm] Change branch weights for GC safe points to 1000:1, 64:4 seems to cause...

[llvm] Change branch weights for GC safe points to 1000:1, 64:4 seems to cause a warning from clang: (#46254)

warning: <unknown>:0:0: 94.12% (64 / 68)
Co-authored-by: Nvargaz <vargaz@users.noreply.github.com>
上级 7c18d4d6
......@@ -6686,7 +6686,7 @@ process_bb (EmitContext *ctx, MonoBasicBlock *bb)
args [1] = LLVMConstInt (LLVMInt1Type (), 1, FALSE);
cmp = call_intrins (ctx, INTRINS_EXPECT_I1, args, "");
mono_llvm_build_weighted_branch (builder, cmp, cont_bb, poll_bb, 64, 4);
mono_llvm_build_weighted_branch (builder, cmp, cont_bb, poll_bb, 1000, 1);
ctx->builder = builder = create_builder (ctx);
LLVMPositionBuilderAtEnd (builder, poll_bb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册