Skip to content

Commit a035ef4

Browse files
committed
[RISCV] Use i64 instead of XLenVT in some RV64 only isel patterns. NFC
1 parent fd9a1dc commit a035ef4

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoZalasr.td

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,15 @@ let Predicates = [HasStdExtZalasr] in {
9898
let Predicates = [HasStdExtZalasr, IsRV32] in {
9999
def : PatLAQ<acquiring_load<atomic_load_nonext_32>, LW_AQ>;
100100
def : PatLAQ<seq_cst_load<atomic_load_nonext_32>, LW_AQ>;
101-
102-
} // Predicates = [HasStdExtZalasr, IsRV64]
101+
} // Predicates = [HasStdExtZalasr, IsRV32]
103102

104103
let Predicates = [HasStdExtZalasr, IsRV64] in {
105-
def : PatLAQ<acquiring_load<atomic_load_asext_32>, LW_AQ>;
106-
def : PatLAQ<seq_cst_load<atomic_load_asext_32>, LW_AQ>;
104+
def : PatLAQ<acquiring_load<atomic_load_asext_32>, LW_AQ, i64>;
105+
def : PatLAQ<seq_cst_load<atomic_load_asext_32>, LW_AQ, i64>;
107106

108-
def : PatLAQ<acquiring_load<atomic_load_nonext_64>, LD_AQ>;
109-
def : PatLAQ<seq_cst_load<atomic_load_nonext_64>, LD_AQ>;
107+
def : PatLAQ<acquiring_load<atomic_load_nonext_64>, LD_AQ, i64>;
108+
def : PatLAQ<seq_cst_load<atomic_load_nonext_64>, LD_AQ, i64>;
110109

111-
def : PatSRL<releasing_store<atomic_store_64>, SD_RL>;
112-
def : PatSRL<seq_cst_store<atomic_store_64>, SD_RL>;
110+
def : PatSRL<releasing_store<atomic_store_64>, SD_RL, i64>;
111+
def : PatSRL<seq_cst_store<atomic_store_64>, SD_RL, i64>;
113112
} // Predicates = [HasStdExtZalasr, IsRV64]

0 commit comments

Comments
 (0)