Skip to content

Commit

Permalink
[RISC-V] Increase instruction group size (#88468)
Browse files Browse the repository at this point in the history
Similar to ARM default IG size is not enough for prolog generation.
  • Loading branch information
Alexander Soldatov authored Jul 6, 2023
1 parent bd63402 commit d6d383e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/coreclr/jit/emit.h
Original file line number Diff line number Diff line change
Expand Up @@ -2368,9 +2368,9 @@ class emitter
//
CLANG_FORMAT_COMMENT_ANCHOR;

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

size_t emitIGbuffSize;

Expand Down

0 comments on commit d6d383e

Please sign in to comment.