[PATCH] D123162: [CaptureTracking] Ignore ephemeral values when determining pointer escapeness

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 00:42:29 PDT 2022


nikic added a reviewer: reames.
nikic added a comment.

I think doing this is correct.



================
Comment at: llvm/include/llvm/Analysis/CaptureTracking.h:18
 #include "llvm/ADT/STLFunctionalExtras.h"
+#include "llvm/ADT/SmallPtrSet.h"
 
----------------
You can forward declare: `template <typename T> class SmallPtrSetImpl;`


================
Comment at: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:2196
     AU.addPreserved<LoopInfoWrapperPass>();
+    AU.addRequired<AssumptionCacheTracker>();
   }
----------------
I believe you need to add it to the pass dependencies below as well.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123162



More information about the llvm-commits mailing list