Furthermore, use beqz $rd, .BB instead of beq $rd, $zero, .BB.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Do we need dbar instructions around the ll/sc loop?
llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp | ||
---|---|---|
415 | I think it's better to use BEQZ here. |
Comment Actions
Yes. Thanks for the checking, I will fix this.
llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp | ||
---|---|---|
415 | Good suggestion! I will modify it. Thanks. |
llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw-minmax.ll | ||
---|---|---|
77 | Thanks, I will rebase this patch. | |
86 | Thanks, I will rebase this patch. | |
162 | Thanks, I will rebase this patch. | |
171 | Thanks, I will rebase this patch. | |
llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw.ll | ||
23 | Thanks, I will update the summary. |
I think it's better to use BEQZ here.