Skip to content

Commit

Permalink
Minor cleanups.
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz committed Feb 9, 2024
1 parent cfaf8d9 commit 5ab0d94
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
<method signature="System.Boolean get_IsHardwareAccelerated()" body="stub" value="false" />
</type>
</assembly>
</linker>
</linker>
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@
<method signature="System.Boolean get_IsSupported()" body="stub" value="false" />
</type>
</assembly>
</linker>
</linker>
1 change: 0 additions & 1 deletion src/mono/mono/mini/aot-compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -4227,7 +4227,6 @@ get_plt_entry (MonoAotCompile *acfg, MonoJumpInfo *patch_info)
res->llvm_symbol = mono_mempool_strdup_printf (acfg->mempool, "%s_%s_llvm", res->symbol, res->debug_sym);
else
res->llvm_symbol = mono_mempool_strdup_printf (acfg->mempool, "%s_llvm", res->symbol);

if (strstr (res->llvm_symbol, acfg->temp_prefix) == res->llvm_symbol)
res->llvm_symbol = res->llvm_symbol + strlen (acfg->temp_prefix);

Expand Down
2 changes: 0 additions & 2 deletions src/mono/mono/mini/method-to-ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -4750,10 +4750,8 @@ static gboolean
aggressive_inline_method (MonoMethod *cmethod)
{
gboolean aggressive_inline = m_method_is_aggressive_inlining (cmethod);
#ifdef MONO_ARCH_SIMD_INTRINSICS
if (aggressive_inline)
aggressive_inline = !mono_simd_unsupported_aggressive_inline_intrinsic_type (cmethod);
#endif
return aggressive_inline;
}

Expand Down
9 changes: 8 additions & 1 deletion src/mono/mono/mini/simd-intrinsics.c
Original file line number Diff line number Diff line change
Expand Up @@ -6169,10 +6169,11 @@ mono_simd_decompose_intrinsic (MonoCompile *cfg, MonoBasicBlock *bb, MonoInst *i
}

gboolean
mono_simd_unsupported_aggressive_inline_intrinsic_type(MonoMethod* cmethod)
mono_simd_unsupported_aggressive_inline_intrinsic_type (MonoMethod* cmethod)
{
return FALSE;
}

#endif /*defined(TARGET_WIN32) && defined(TARGET_AMD64)*/

#endif /* DISABLE_JIT */
Expand Down Expand Up @@ -6207,6 +6208,12 @@ mono_simd_decompose_intrinsic (MonoCompile *cfg, MonoBasicBlock *bb, MonoInst *i
{
}

gboolean
mono_simd_unsupported_aggressive_inline_intrinsic_type (MonoMethod* cmethod)
{
return FALSE;
}

#endif /* MONO_ARCH_SIMD_INTRINSICS */

#if defined(TARGET_AMD64)
Expand Down

0 comments on commit 5ab0d94

Please sign in to comment.