[PATCH] D158673: [SDAG][RISCV] Avoid neg instructions when lowering atomic_load_sub with a constant rhs
Yingwei Zheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 25 07:25:23 PDT 2023
dtcxzyw updated this revision to Diff 553465.
dtcxzyw added a reviewer: olista01.
dtcxzyw added a comment.
- Rebase
- Expand ATOMIC_LOAD_SUB to NEG+ATOMIC_LOAD_LOAD in LegalizeDAG::ExpandNode
Related patch (AArch64): D42477 <https://reviews.llvm.org/D42477>
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158673/new/
https://reviews.llvm.org/D158673
Files:
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVInstrInfoA.td
llvm/test/CodeGen/RISCV/atomic-rmw-sub.ll
llvm/test/CodeGen/RISCV/forced-atomics.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158673.553465.patch
Type: text/x-patch
Size: 16097 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230825/76bdfaba/attachment.bin>
More information about the llvm-commits
mailing list