[PATCH] D72146: [DSE] Add first version of MemorySSA-backed DSE.

Tyker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 4 04:11:29 PST 2020


Tyker added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1678
+    // then it's leaked by this function anyways.
+    else if (isAllocLikeFn(&I, &TLI) && !PointerMayBeCaptured(&I, false, true))
+      NonEscapingStackObjects.insert(&I);
----------------
`PointerMayBeCaptured(&I, false, true)`
i think we should care about return capture here. if the pointer is returned the content is observable.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72146





More information about the llvm-commits mailing list