[PATCH] D138177: [LoongArch] Add codegen support for atomicrmw min/max operation on LA64
Xiaodong Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 18 19:17:52 PST 2022
XiaodongLoong added a comment.
Please rebase code to latest commit. the failed test should be OK.
================
Comment at: llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp:431-432
+ insertSext(TII, DL, LoopHeadMBB, Scratch2Reg, MI.getOperand(6).getReg());
+ // bge scratch2, incr, .looptail
+ BuildMI(LoopHeadMBB, DL, TII->get(LoongArch::BGE))
+ .addReg(Scratch2Reg)
----------------
Align?
================
Comment at: llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp:439-440
+ insertSext(TII, DL, LoopHeadMBB, Scratch2Reg, MI.getOperand(6).getReg());
+ // bge incr, scratch2, .looptail
+ BuildMI(LoopHeadMBB, DL, TII->get(LoongArch::BGE))
+ .addReg(IncrReg)
----------------
Align?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138177/new/
https://reviews.llvm.org/D138177
More information about the llvm-commits
mailing list