[llvm] [DeadStoreElimination] Refactor out `pushMemUses`; drop dead check (NFC) (PR #98530)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 13:11:20 PDT 2024


================
@@ -1157,26 +1167,14 @@ struct DSEState {
   }
 
   /// Returns true if \p Def is not read before returning from the function.
-  bool isWriteAtEndOfFunction(MemoryDef *Def) {
+  bool isWriteAtEndOfFunction(MemoryDef *Def, MemoryLocation DefLoc) {
----------------
nikic wrote:

```suggestion
  bool isWriteAtEndOfFunction(MemoryDef *Def, const MemoryLocation &DefLoc) {
```

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


More information about the llvm-commits mailing list