[llvm] [LV] Add initial legality checks for loops with unbound loads. (PR #152422)

Shih-Po Hung via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 22 00:29:12 PDT 2025


================
@@ -24414,6 +24414,10 @@ bool RISCVTargetLowering::isLegalSpeculativeLoad(EVT DataType,
   if (!isLegalElementTypeForRVV(ScalarType))
     return false;
 
+  if (!Subtarget.enableUnalignedVectorMem() &&
+      Alignment < ScalarType.getStoreSize())
----------------
arcbbb wrote:

Added. Thanks!

https://github.com/llvm/llvm-project/pull/152422


More information about the llvm-commits mailing list