[llvm] [DSE] Apply initializes attribute to DSE (PR #107282)
    Antonio Frighetto via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Oct 21 18:11:54 PDT 2024
    
    
  
================
@@ -2170,6 +2242,16 @@ struct DSEState {
     return MadeChange;
   }
 
+  // Return the locations written by the initializes attribute.
+  // Note that this function considers:
+  // 1. Unwind edge: use "initializes" attribute only if the callee has
+  //    "nounwind" attribute, or the argument has "dead_on_unwind" attribute,
+  //    or the argument is invisble to caller on unwind. That is, we don't
----------------
antoniofrighetto wrote:
```suggestion
  //    or the argument is invisible to caller on unwind. That is, we don't
```
https://github.com/llvm/llvm-project/pull/107282
    
    
More information about the llvm-commits
mailing list