[all-commits] [llvm/llvm-project] 00b77d: [DSE] Remove alloc function check in canSkipDef()

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Jan 17 00:25:57 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 00b77d917cd8e062b93e080f35cfd5aa15348f31
      https://github.com/llvm/llvm-project/commit/00b77d917cd8e062b93e080f35cfd5aa15348f31
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-01-17 (Mon, 17 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

  Log Message:
  -----------
  [DSE] Remove alloc function check in canSkipDef()

canSkipDef() currently skips inaccessiblememonly calls, but not
if they are allocation functions. This check was added in D103009,
but actually seems to be a leftover from a previous implementation
in D101440. canSkipDef() is not used on the storeIsNoop() path,
where the relevant transform ended up being implemented.

Differential Revision: https://reviews.llvm.org/D117005




More information about the All-commits mailing list