[llvm] [LV] Initialize IR block pointers in ILV. (NFC) (PR #139807)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu May 15 01:20:35 PDT 2025


================
@@ -603,13 +603,13 @@ class InnerLoopVectorizer {
   // --- Vectorization state ---
 
   /// The vector-loop preheader.
-  BasicBlock *LoopVectorPreHeader;
+  BasicBlock *LoopVectorPreHeader = nullptr;
 
   /// The scalar-loop preheader.
-  BasicBlock *LoopScalarPreHeader;
+  BasicBlock *LoopScalarPreHeader = nullptr;
 
   /// Middle Block between the vector and the scalar.
-  BasicBlock *LoopMiddleBlock;
+  BasicBlock *LoopMiddleBlock = nullptr;
----------------
fhahn wrote:

For most it is probably not worth the trouble, as it isn't expose outside LoopVectorize.cpp, and things are going to get removed gradually.

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


More information about the llvm-commits mailing list