[all-commits] [llvm/llvm-project] 885140: [NVPTX] Fix NVPTXReplaceImageHandles for multiple ...

Dmitry Vasilyev via All-commits all-commits at lists.llvm.org
Mon Feb 14 14:31:25 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 885140171a7607910aa1f76860103fee3a830ce1
      https://github.com/llvm/llvm-project/commit/885140171a7607910aa1f76860103fee3a830ce1
  Author: Dmitry Vassiliev <dvassiliev at accesssoftek.com>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXReplaceImageHandles.cpp
    M llvm/test/CodeGen/NVPTX/tex-read-cuda.ll

  Log Message:
  -----------
  [NVPTX] Fix NVPTXReplaceImageHandles for multiple uses of a texref

The texsurf_handle is removed by NVPTXReplaceImageHandles.cpp. There are more than one uses of the texsurf_handle, one of them is a regular function call, and one of them is a texture intrinsic.
The current hacky logic in NVPTXReplaceImageHandles.cpp for CUDA cannot handle such a mixed use. This patch fixes this issue.

Reviewed By: tra

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




More information about the All-commits mailing list