Skip to content

Commit 9a1715b

Browse files
committed
address comments
1 parent 1a22a09 commit 9a1715b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Diff for: llvm/lib/Target/LoongArch/GISel/LoongArchCallLowering.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ bool LoongArchCallLowering::lowerReturn(MachineIRBuilder &MIRBuilder,
2525
const Value *Val,
2626
ArrayRef<Register> VRegs,
2727
FunctionLoweringInfo &FLI) const {
28-
MachineInstrBuilder Ret = MIRBuilder.buildInstrNoInsert(LoongArch::PseudoRET);
29-
3028
if (Val != nullptr)
3129
return false;
3230

31+
MachineInstrBuilder Ret = MIRBuilder.buildInstrNoInsert(LoongArch::PseudoRET);
3332
MIRBuilder.insertInstr(Ret);
3433
return true;
3534
}

Diff for: llvm/lib/Target/LoongArch/GISel/LoongArchRegisterBanks.td

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
//=- LoongArchRegisterBank.td - Describe the LoongArch Banks -*- tablegen -*-=//
1+
//=- LoongArchRegisterBanks.td - Describe the LoongArch Banks -*- tablegen -*-=//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
7-
//===----------------------------------------------------------------------===//
7+
//===-----------------------------------------------------------------------===//
88
//
99
//
10-
//===----------------------------------------------------------------------===//
10+
//===-----------------------------------------------------------------------===//
1111

1212
/// General Purpose Registers: R.
1313
def GPRBRegBank : RegisterBank<"GPRB", [GPR]>;

0 commit comments

Comments
 (0)