[PATCH] D92263: [DSE] Remove a redundant call to getLocForWriteEx()

Greg Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 30 21:13:21 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGbcc802fa3624: [DSE] Remove a redundant call to getLocForWriteEx() (authored by gparker42).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92263

Files:
  llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp


Index: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -2505,7 +2505,7 @@
       continue;
     Instruction *SI = KillingDef->getMemoryInst();
 
-    auto MaybeSILoc = State.getLocForWriteEx(SI);
+    Optional<MemoryLocation> MaybeSILoc;
     if (State.isMemTerminatorInst(SI))
       MaybeSILoc = State.getLocForTerminator(SI).map(
           [](const std::pair<MemoryLocation, bool> &P) { return P.first; });


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92263.308530.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201201/8c158259/attachment.bin>


More information about the llvm-commits mailing list