Skip to content

Commit

Permalink
[LoongArch64] Fix some failed R2R testcases. (#103033)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyXu-HF committed Jun 9, 2024
1 parent f47b491 commit 2bd1586
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/coreclr/jit/emitloongarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2203,11 +2203,6 @@ void emitter::emitIns_J(instruction ins, BasicBlock* dst, int instrCount)
emitCounts_INS_OPTS_J++;
id->idAddr()->iiaBBlabel = dst;

if (emitComp->opts.compReloc)
{
id->idSetIsDspReloc();
}

id->idjShort = false;

// TODO-LoongArch64: maybe deleted this.
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/gentree.h
Original file line number Diff line number Diff line change
Expand Up @@ -5610,7 +5610,7 @@ struct GenTreeCall final : public GenTree
return WellKnownArg::VirtualStubCell;
}

#if defined(TARGET_ARMARCH) || defined(TARGET_RISCV64)
#if defined(TARGET_ARMARCH) || defined(TARGET_RISCV64) || defined(TARGET_LOONGARCH64)
// For ARM architectures, we always use an indirection cell for R2R calls.
if (IsR2RRelativeIndir() && !IsDelegateInvoke())
{
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/lower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6351,7 +6351,7 @@ GenTree* Lowering::LowerVirtualStubCall(GenTreeCall* call)
else
{
bool shouldOptimizeVirtualStubCall = false;
#if defined(TARGET_ARMARCH) || defined(TARGET_AMD64)
#if defined(TARGET_ARMARCH) || defined(TARGET_AMD64) || defined(TARGET_LOONGARCH64)
// Skip inserting the indirection node to load the address that is already
// computed in the VSD stub arg register as a hidden parameter. Instead during the
// codegen, just load the call target from there.
Expand Down

0 comments on commit 2bd1586

Please sign in to comment.