[all-commits] [llvm/llvm-project] a1bf4d: [DSE] Generalize store null to calloc allocated me...

Philip Reames via All-commits all-commits at lists.llvm.org
Tue Jan 11 12:03:14 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1bf4ddac6e493e9010984649f78403f993e56b4
      https://github.com/llvm/llvm-project/commit/a1bf4ddac6e493e9010984649f78403f993e56b4
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2022-01-11 (Tue, 11 Jan 2022)

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

  Log Message:
  -----------
  [DSE] Generalize store null to calloc allocated memory [NFC-ish]

This change removes a direct check for calloc-like allocation functions, and instead handles the generic case where we're storing a constant to constant initialized memory.  This is mostly to remove the call to isCallocLike, but if someone downstream happens to have an initialized alloc which initializes to e.g. -1, this will also kick in for them.  (I don't know of such an example ftr.)




More information about the All-commits mailing list