Skip to content

Commit

Permalink
[LoongArch64] Fix the compiling error for LA. (#69711)
Browse files Browse the repository at this point in the history
  • Loading branch information
shushanhf authored May 24, 2022
1 parent fff4ff0 commit 89a58ee
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/coreclr/jit/codegenloongarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5774,12 +5774,6 @@ void CodeGen::genPutArgStk(GenTreePutArgStk* treeNode)
// we are storing arg slot number in GT_PUTARG_STK node in lowering phase.
unsigned argOffsetOut = treeNode->getArgOffset();

#ifdef DEBUG
CallArg* callArg = treeNode->gtCall->gtArgs.FindByNode(treeNode);
assert(callArg != nullptr);
DEBUG_ARG_SLOTS_ASSERT(argOffsetOut == (callArg->AbiInfo.SlotNum * TARGET_POINTER_SIZE));
#endif // DEBUG

// Whether to setup stk arg in incoming or out-going arg area?
// Fast tail calls implemented as epilog+jmp = stk arg is setup in incoming arg area.
// All other calls - stk arg is setup in out-going arg area.
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 @@ -7250,7 +7250,7 @@ void Lowering::TransformUnusedIndirection(GenTreeIndir* ind, Compiler* comp, Bas

ind->ChangeType(comp->gtTypeForNullCheck(ind));

#ifdef TARGET_ARM64
#if defined(TARGET_ARM64) || defined(TARGET_LOONGARCH64)
bool useNullCheck = true;
#elif TARGET_ARM
bool useNullCheck = false;
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/lsraloongarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ int LinearScan::BuildCall(GenTreeCall* call)
GenTree* argNode = arg.GetEarlyNode();

// Skip arguments that have been moved to the Late Arg list
if ((argNode->gtFlags & GTF_LATE_ARG) == 0)
if (arg.GetLateNode() == nullptr)
{
#if FEATURE_ARG_SPLIT
// PUTARG_SPLIT nodes must be in the gtCallLateArgs list, since they
Expand Down

0 comments on commit 89a58ee

Please sign in to comment.