Skip to content

Commit d6d383e

Browse files
author
Alexander Soldatov
authored
[RISC-V] Increase instruction group size (#88468)
Similar to ARM default IG size is not enough for prolog generation.
1 parent bd63402 commit d6d383e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/coreclr/jit/emit.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,9 +2368,9 @@ class emitter
23682368
//
23692369
CLANG_FORMAT_COMMENT_ANCHOR;
23702370

2371-
#if defined(TARGET_ARMARCH) || defined(TARGET_LOONGARCH64)
2372-
// ARM32 and ARM64 both can require a bigger prolog instruction group. One scenario is where
2373-
// a function uses all the incoming integer and single-precision floating-point arguments,
2371+
#if defined(TARGET_ARMARCH) || defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64)
2372+
// ARM32/64, LoongArch and RISC-V can require a bigger prolog instruction group. One scenario
2373+
// is where a function uses all the incoming integer and single-precision floating-point arguments,
23742374
// and must store them all to the frame on entry. If the frame is very large, we generate
23752375
// ugly code like:
23762376
// movw r10, 0x488
@@ -2387,7 +2387,7 @@ class emitter
23872387
#else
23882388
#define SC_IG_BUFFER_NUM_SMALL_DESCS 14
23892389
#define SC_IG_BUFFER_NUM_LARGE_DESCS 50
2390-
#endif // !(TARGET_ARMARCH || TARGET_LOONGARCH64)
2390+
#endif // !(TARGET_ARMARCH || TARGET_LOONGARCH64 || TARGET_RISCV64)
23912391

23922392
size_t emitIGbuffSize;
23932393

0 commit comments

Comments
 (0)