[PATCH] D98346: [DSE] Handle memmove with equal non-const sizes

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 10 06:35:28 PST 2021


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:388
       return nullptr;
     };
     Value *LaterV = GetSizeFromInstr(LaterI);
----------------
Use `dyn_cast<MemIntrinsic>` + `getLength()` instead?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98346



More information about the llvm-commits mailing list