[PATCH] D111727: [DSE] Eliminates redundant store of an exisiting value (PR16520)

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 19 12:43:23 PDT 2021


fhahn added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1955
+        continue;
+      auto UpperDef = dyn_cast_or_null<MemoryDef>(Def->getDefiningAccess());
+      if (!UpperDef || MSSA.isLiveOnEntryDef(UpperDef))
----------------
nikic wrote:
> `auto *`
can the defining access ever be null?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111727/new/

https://reviews.llvm.org/D111727



More information about the llvm-commits mailing list