[PATCH] D126085: [RISCV] Add a subtarget feature to enable unaligned loads

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 20 12:57:27 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:11820
 
-  return false;
+  return Subtarget.enableUnalignedMem();
 }
----------------
This seems like it should be a different feature for vectors.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126085



More information about the llvm-commits mailing list