We cannot directy reuse the patters of StPat because for some reason the store DAG node and the atomic_store_nn DAG nodes put the ptr and the value in different positions. Currently we attempt to store the address to an address formed by the value.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/RISCV/RISCVInstrInfoA.td | ||
---|---|---|
47 ↗ | (On Diff #162378) | My tblgen-fu is not great but perhaps we can swap the operands before using the original StPat, without having to repeat them here. |
Comment Actions
Really good catch - thanks for the fix!
lib/Target/RISCV/RISCVInstrInfoA.td | ||
---|---|---|
106 ↗ | (On Diff #162378) | Could you fix the extra whitespace after atomic_store_16, while you're doing this? i.e. ensuring SB/SH/SW are aligned. |