[all-commits] [llvm/llvm-project] 50c750: [NVPTX] Avoid temp copy of byval kernel parameters.

Artem Belevich via All-commits all-commits at lists.llvm.org
Mon Mar 15 14:28:44 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50c7504a93fdb90c26870db8c8ea7add895c7725
      https://github.com/llvm/llvm-project/commit/50c7504a93fdb90c26870db8c8ea7add895c7725
  Author: Artem Belevich <tra at google.com>
  Date:   2021-03-15 (Mon, 15 Mar 2021)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp
    M llvm/test/CodeGen/NVPTX/lower-args.ll
    A llvm/test/CodeGen/NVPTX/lower-byval-args.ll
    M llvm/test/CodeGen/NVPTX/lower-kernel-ptr-arg.ll

  Log Message:
  -----------
  [NVPTX] Avoid temp copy of byval kernel parameters.

Avoid making a temporary copy of byval argument if all accesses are loads and
therefore the pointer to the parameter can not escape.

This avoids excessive global memory accesses when each kernel makes its own
copy.

Differential revision: https://reviews.llvm.org/D98469




More information about the All-commits mailing list