[llvm] [LoadStoreVectorizer] Fill gaps in load/store chains to enable vectorization (PR #159388)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 26 03:24:50 PDT 2025


================
@@ -817,6 +817,12 @@ class TargetTransformInfo {
   LLVM_ABI bool isLegalMaskedLoad(Type *DataType, Align Alignment,
                                   unsigned AddressSpace) const;
 
+  /// Return true if it is legal to widen loads beyond their current width,
+  /// assuming the result is still well-aligned. For example, converting a load
+  /// i32 to a load i64, or vectorizing three continuous load i32s into a load
+  /// <4 x i32>.
+  LLVM_ABI bool isLegalToWidenLoads() const;
----------------
arsenm wrote:

LoadInst + type it wants to widen to 

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


More information about the llvm-commits mailing list