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

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 10 08:30:59 PST 2021


xbolva00 added inline comments.


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


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

https://reviews.llvm.org/D98346



More information about the llvm-commits mailing list