[PATCH] D102511: Do actual DCE in LoopUnroll

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 14 10:07:11 PDT 2021


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/LoopUnroll.cpp:226
   const DataLayout &DL = L->getHeader()->getModule()->getDataLayout();
+  SmallVector<WeakTrackingVH, 16> DeadInsts;
   for (BasicBlock *BB : L->getBlocks()) {
----------------
nikic wrote:
> Why do we need WeakTrackingVH here?
Err, ignore this comment, I submitted it by accident -- it's incompatible with the other one, which requires WeakTrackingVH in the API.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102511



More information about the llvm-commits mailing list