[llvm] [SROA] Add Stored Value Size Check for Tree-Structured Merge (PR #162921)
    Princeton Ferro via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Oct 10 16:38:41 PDT 2025
    
    
  
================
@@ -2991,10 +2992,17 @@ class AllocaSliceRewriter : public InstVisitor<AllocaSliceRewriter, bool> {
         // Do not handle the case if
         //   1. The store does not meet the conditions in the helper function
         //   2. The store is volatile
+        //   3. The store value type size is less than the allocated element
----------------
Prince781 wrote:
Comment should be changed?
https://github.com/llvm/llvm-project/pull/162921
    
    
More information about the llvm-commits
mailing list