[PATCH] D130621: [RISCV] Add target feature to force 32-bit atomics

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 27 03:50:02 PDT 2022


nikic added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoA.td:111
+let Predicates = [HasAtomicLdSt32] in {
+  defm : LdPat<atomic_load_8,  LB>;
+  defm : LdPat<atomic_load_16, LH>;
----------------
jrtc27 wrote:
> Don’t duplicate patterns
What's the right way to avoid the duplication here? Is there a way to use "or" inside Predicates?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130621/new/

https://reviews.llvm.org/D130621



More information about the llvm-commits mailing list