[all-commits] [llvm/llvm-project] f07853: [MemoryLocation] Move DSE's logic to new MemLoc::g...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Dec 3 01:12:24 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f078536f46598b1a1e363aad6893fe9c3f90f5e5
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-12-03 (Fri, 03 Dec 2021)

  Changed paths:
    M llvm/include/llvm/Analysis/MemoryLocation.h
    M llvm/lib/Analysis/MemoryLocation.cpp
    M llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

  Log Message:
  [MemoryLocation] Move DSE's logic to new MemLoc::getForDest helper (NFC).

DSE has some extra logic to determine the write location of library
calls like str*cpy and str*cat. This patch moves the logic to a new
MemoryLocation:getForDest variant, which takes a call and TLI.

This patch should be NFC, because no other places take advantage of the
new helper yet.

Suggested by @reames post-commit 7eec832def571.

Reviewed By: nikic

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

More information about the All-commits mailing list