Skip to content

Commit faf94e4

Browse files
committed
clean the code
1 parent fcdf849 commit faf94e4

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5833,7 +5833,7 @@ LoongArchTargetLowering::shouldExpandAtomicRMWInIR(AtomicRMWInst *AI) const {
58335833
AI->getOperation() == AtomicRMWInst::Or ||
58345834
AI->getOperation() == AtomicRMWInst::Xor))
58355835
return AtomicExpansionKind::Expand;
5836-
if ((AI->getOperation() == AtomicRMWInst::Nand || Size < 32))
5836+
if (AI->getOperation() == AtomicRMWInst::Nand || Size < 32)
58375837
return AtomicExpansionKind::CmpXChg;
58385838
}
58395839

llvm/lib/Target/LoongArch/LoongArchInstrInfo.td

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,6 @@ multiclass binary_atomic_op_bh<string inst, string op> {
21052105
}
21062106

21072107
let Predicates = [ HasLAM_BH, IsLA64 ] in {
2108-
21092108
defm : binary_atomic_op_bh<"AMSWAP", "atomic_swap">;
21102109
defm : binary_atomic_op_bh<"AMADD", "atomic_load_add">;
21112110
def : Pat<(atomic_load_sub_i8_monotonic GPR:$rj, GPR:$rk),
@@ -2120,7 +2119,6 @@ def : Pat<(atomic_load_sub_i16 GPR:$rj, GPR:$rk),
21202119
} // Predicates = [ IsLA64, HasLAM_BH ]
21212120

21222121
let Predicates = [ HasLAMCAS, IsLA64 ] in {
2123-
21242122
def : Pat<(atomic_cmp_swap_i8_monotonic GPR:$addr, GPR:$cmp, GPR:$new),
21252123
(AMCAS_B GPR:$cmp, GPR:$new, GPR:$addr)>;
21262124
def : Pat<(atomic_cmp_swap_i16_monotonic GPR:$addr, GPR:$cmp, GPR:$new),
@@ -2141,7 +2139,6 @@ def : Pat<(atomic_cmp_swap_i64 GPR:$addr, GPR:$cmp, GPR:$new),
21412139
}
21422140

21432141
let Predicates = [IsLA64] in {
2144-
21452142
defm : binary_atomic_op_wd<"AMSWAP", "atomic_swap">;
21462143
defm : binary_atomic_op_wd<"AMADD", "atomic_load_add">;
21472144
defm : binary_atomic_op_wd<"AMAND", "atomic_load_and">;

0 commit comments

Comments
 (0)