[all-commits] [llvm/llvm-project] 00e686: [MemCpyOpt] Look through pointer casts when checki...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jan 5 00:50:49 PST 2022

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

  Changed paths:
    M llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
    M llvm/test/Transforms/MemCpyOpt/callslot.ll
    M llvm/test/Transforms/MemCpyOpt/capturing-func.ll

  Log Message:
  [MemCpyOpt] Look through pointer casts when checking capture

The user scanning loop above looks through pointer casts, so we
also need to strip pointer casts in the capture check. Previously
the source was incorrectly considered not captured if a bitcast
was passed to the call.

More information about the All-commits mailing list