@@ -437,7 +437,7 @@ class CodeGen final : public CodeGenInterface
437437
438438 FuncletFrameInfoDsc genFuncletInfo;
439439
440- #elif defined(TARGET_LOONGARCH64)
440+ #elif defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64)
441441
442442 // A set of information that is used by funclet prolog and epilog generation.
443443 // It is collected once, before funclet prologs and epilogs are generated,
@@ -448,26 +448,6 @@ class CodeGen final : public CodeGenInterface
448448 int fiFunction_CallerSP_to_FP_delta; // Delta between caller SP and the frame pointer in the parent function
449449 // (negative)
450450 int fiSP_to_CalleeSaved_delta; // CalleeSaved register save offset from SP (positive)
451- int fiCalleeSavedPadding; // CalleeSaved offset padding (positive)
452- int fiSP_to_PSP_slot_delta; // PSP slot offset from SP (positive)
453- int fiCallerSP_to_PSP_slot_delta; // PSP slot offset from Caller SP (negative)
454- int fiSpDelta; // Stack pointer delta (negative)
455- };
456-
457- FuncletFrameInfoDsc genFuncletInfo;
458-
459- #elif defined(TARGET_RISCV64)
460-
461- // A set of information that is used by funclet prolog and epilog generation.
462- // It is collected once, before funclet prologs and epilogs are generated,
463- // and used by all funclet prologs and epilogs, which must all be the same.
464- struct FuncletFrameInfoDsc
465- {
466- regMaskTP fiSaveRegs; // Set of callee-saved registers saved in the funclet prolog (includes RA)
467- int fiFunction_CallerSP_to_FP_delta; // Delta between caller SP and the frame pointer in the parent function
468- // (negative)
469- int fiSP_to_CalleeSaved_delta; // CalleeSaved register save offset from SP (positive)
470- int fiCalleeSavedPadding; // CalleeSaved offset padding (positive)
471451 int fiSP_to_PSP_slot_delta; // PSP slot offset from SP (positive)
472452 int fiCallerSP_to_PSP_slot_delta; // PSP slot offset from Caller SP (negative)
473453 int fiSpDelta; // Stack pointer delta (negative)
@@ -1272,7 +1252,6 @@ class CodeGen final : public CodeGenInterface
12721252 void genJmpMethod (GenTree* jmp);
12731253 BasicBlock* genCallFinally (BasicBlock* block);
12741254#if defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64)
1275- // TODO: refactor for LA.
12761255 void genCodeForJumpCompare (GenTreeOpCC* tree);
12771256#endif
12781257#if defined(TARGET_ARM64)
0 commit comments