Skip to content

Commit 0633ecf

Browse files
authored
[RISC-V][JIT] Disable promotion for splitted args (#87855)
* [RISC-V][JIT] Reset lvIsRegArg in splitted arg * Remove LA * Updated based on the review * Moved codes
1 parent 3195fbb commit 0633ecf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/coreclr/jit/lclvars.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,6 +2175,13 @@ bool Compiler::StructPromotionHelper::ShouldPromoteStructVar(unsigned lclNum)
21752175
lclNum);
21762176
shouldPromote = false;
21772177
}
2178+
#if defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64)
2179+
else if (varDsc->lvIsSplit)
2180+
{
2181+
JITDUMP("Not promoting multireg struct local V%02u, because it is splitted.\n", lclNum);
2182+
shouldPromote = false;
2183+
}
2184+
#endif // TARGET_LOONGARCH64 || TARGET_RISCV64
21782185
}
21792186
else
21802187
#endif // !FEATURE_MULTIREG_STRUCT_PROMOTE

0 commit comments

Comments
 (0)