projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
828653f
)
[llvm] Avoid decomposing OP_STOREV_MEMBASE early for types which contains no referenc...
author
Zoltan Varga
<vargaz@gmail.com>
Thu, 5 Dec 2019 15:02:43 +0000
(16:02 +0100)
committer
GitHub
<noreply@github.com>
Thu, 5 Dec 2019 15:02:43 +0000
(16:02 +0100)
Commit migrated from https://github.com/mono/mono/commit/
e67673fac85d13882256893d1b61c08ca0fc13c6
src/mono/mono/mini/decompose.c
patch
|
blob
|
history
diff --git
a/src/mono/mono/mini/decompose.c
b/src/mono/mono/mini/decompose.c
index
8df6634
..
a448e21
100644
(file)
--- a/
src/mono/mono/mini/decompose.c
+++ b/
src/mono/mono/mini/decompose.c
@@
-1273,7
+1273,9
@@
mono_decompose_vtype_opts (MonoCompile *cfg)
case OP_STOREV_MEMBASE: {
src_var = get_vreg_to_inst (cfg, ins->sreg1);
- if (COMPILE_LLVM (cfg) && !mini_is_gsharedvt_klass (ins->klass) && !cfg->gen_write_barriers)
+ mono_class_init_sizes (ins->klass);
+
+ if (COMPILE_LLVM (cfg) && !mini_is_gsharedvt_klass (ins->klass) && !(cfg->gen_write_barriers && m_class_has_references (ins->klass)))
break;
if (!src_var) {