[llvm] 6e42f90 - [RISCV] Remove AtomicStPat now that atomic_store has the same operand order as store. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 31 19:32:36 PDT 2023
Author: Craig Topper
Date: 2023-08-31T19:32:21-07:00
New Revision: 6e42f905ae215fbf0c92b57780b64b274cc7e206
URL: https://github.com/llvm/llvm-project/commit/6e42f905ae215fbf0c92b57780b64b274cc7e206
DIFF: https://github.com/llvm/llvm-project/commit/6e42f905ae215fbf0c92b57780b64b274cc7e206.diff
LOG: [RISCV] Remove AtomicStPat now that atomic_store has the same operand order as store. NFC
Use StPat instead.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInstrInfoA.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoA.td b/llvm/lib/Target/RISCV/RISCVInstrInfoA.td
index 41f2a372390e83..1c305f17590acc 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoA.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoA.td
@@ -44,11 +44,6 @@ multiclass AMO_rr_aq_rl<bits<5> funct5, bits<3> funct3, string opcodestr> {
def _AQ_RL : AMO_rr<funct5, 1, 1, funct3, opcodestr # ".aqrl">;
}
-class AtomicStPat<PatFrag StoreOp, RVInst Inst, RegisterClass StTy,
- ValueType vt = XLenVT>
- : Pat<(StoreOp (vt StTy:$rs2), (AddrRegImm (XLenVT GPR:$rs1), simm12:$imm12)),
- (Inst StTy:$rs2, GPR:$rs1, simm12:$imm12)>;
-
//===----------------------------------------------------------------------===//
// Instructions
//===----------------------------------------------------------------------===//
@@ -122,14 +117,14 @@ let Predicates = [HasAtomicLdSt] in {
def : LdPat<atomic_load_16, LH>;
def : LdPat<atomic_load_32, LW>;
- def : AtomicStPat<atomic_store_8, SB, GPR>;
- def : AtomicStPat<atomic_store_16, SH, GPR>;
- def : AtomicStPat<atomic_store_32, SW, GPR>;
+ def : StPat<atomic_store_8, SB, GPR, XLenVT>;
+ def : StPat<atomic_store_16, SH, GPR, XLenVT>;
+ def : StPat<atomic_store_32, SW, GPR, XLenVT>;
}
let Predicates = [HasAtomicLdSt, IsRV64] in {
def : LdPat<atomic_load_64, LD, i64>;
- def : AtomicStPat<atomic_store_64, SD, GPR, i64>;
+ def : StPat<atomic_store_64, SD, GPR, i64>;
}
/// AMOs
More information about the llvm-commits
mailing list