[all-commits] [llvm/llvm-project] 41a522: [LICM] Check for noalias call instead of alloc lik...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jan 6 05:39:23 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41a522779dffb79c055097b2d16aaac689e1b5e3
      https://github.com/llvm/llvm-project/commit/41a522779dffb79c055097b2d16aaac689e1b5e3
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-01-06 (Thu, 06 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LICM.cpp
    M llvm/test/Transforms/LICM/promote-tls.ll

  Log Message:
  -----------
  [LICM] Check for noalias call instead of alloc like fn

When determining whether the memory is local to the function (and
we can thus introduce spurious writes without thread-safety issues),
check for a noalias call rather than the hardcoded list of memory
allocation functions. Noalias calls are the more general way to
determine allocation functions, as long as we're only interested
in the property that the returned value is distinct from any other
accessible memory.

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




More information about the All-commits mailing list