[all-commits] [llvm/llvm-project] 215cfa: [AMDGPU][printf] Run AMDGPUPrintfRuntimeBindingPas...

Juan Manuel Martinez Caamaño via All-commits all-commits at lists.llvm.org
Mon Mar 27 00:44:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 215cfa01f2ba6f11d0ca0a2da87038aa81244b73
      https://github.com/llvm/llvm-project/commit/215cfa01f2ba6f11d0ca0a2da87038aa81244b73
  Author: Juan Manuel MARTINEZ CAAMAÑO <juamarti at amd.com>
  Date:   2023-03-27 (Mon, 27 Mar 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    A llvm/test/CodeGen/AMDGPU/opencl-printf-pipeline.ll

  Log Message:
  -----------
  [AMDGPU][printf] Run AMDGPUPrintfRuntimeBindingPass in -O0

AMDGPUPrintfRuntimeBindingPass is not run in the IR optimization
pipeline with -O0.

This means that with OpenCL the printf definition coming from
device_libs gets linked with the user's code, which blocks
AMDGPUPrintfRuntimeBindingPass from working after the linkage is done.

Reviewed By: arsenm

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




More information about the All-commits mailing list