[all-commits] [llvm/llvm-project] 46e6dd: [MemoryBuiltins] Remove isFreeCall() function (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jul 21 05:46:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46e6dd84b778dd2e30368183fec265beceecdd0f
      https://github.com/llvm/llvm-project/commit/46e6dd84b778dd2e30368183fec265beceecdd0f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-07-21 (Thu, 21 Jul 2022)

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

  Log Message:
  -----------
  [MemoryBuiltins] Remove isFreeCall() function (NFC)

Remove isFreeCall() in favor of getFreedOperand(). Replace the
two remaining uses with a getFreedOperand() != nullptr check, as
they only care that something is getting freed. (The usage in DSE
is correct as such. The allocator-related checks in CFLGraph look
rather questionable in general.)




More information about the All-commits mailing list