[all-commits] [llvm/llvm-project] 576060: [ReplaceConstant] Extract code for expanding users...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Mar 3 07:09:23 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 576060fb41c2de536a24d5d421b1cd8942f20b64
      https://github.com/llvm/llvm-project/commit/576060fb41c2de536a24d5d421b1cd8942f20b64
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-03-03 (Fri, 03 Mar 2023)

  Changed paths:
    M llvm/include/llvm/IR/ReplaceConstant.h
    M llvm/lib/IR/ReplaceConstant.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp

  Log Message:
  -----------
  [ReplaceConstant] Extract code for expanding users of constant (NFC)

AMDGPU implements some handy code for expanding all constexpr
users of LDS globals. Extract the core logic into ReplaceConstant,
so that it can be reused elsewhere.




More information about the All-commits mailing list