[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
Wed Aug 27 00:22:24 PDT 2025


================
@@ -24405,6 +24405,22 @@ bool RISCVTargetLowering::isLegalStridedLoadStore(EVT DataType,
   return true;
 }
 
+bool RISCVTargetLowering::isLegalSpeculativeLoad(EVT DataType,
+                                                 Align Alignment) const {
----------------
arcbbb wrote:

Sounds good. I’ve renamed it to isLegalFaultOnlyFirstLoad and updated comments/names to use “fault-only-first” instead of “speculative,

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


More information about the llvm-commits mailing list