[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 Sep 3 01:21:05 PDT 2025


================
@@ -445,6 +445,11 @@ class LoopVectorizationLegality {
   /// Returns a list of all known histogram operations in the loop.
   bool hasHistograms() const { return !Histograms.empty(); }
 
+  /// Returns the loads that need to be fault-only-first.
+  const SmallPtrSetImpl<const Instruction *> &getFaultOnlyFirstLoads() const {
+    return FaultOnlyFirstLoads;
+  }
----------------
arcbbb wrote:

I've renamed it to PotentiallyFaultingLoads. Hope this makes it clearer.

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


More information about the llvm-commits mailing list