[all-commits] [llvm/llvm-project] d7d4aa: AMDGPU: Move AMDGPUAttributor run earlier

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Jun 28 10:13:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7d4aa539c0d2f80c080a3b1e0fa45a78d5e9bfc
      https://github.com/llvm/llvm-project/commit/d7d4aa539c0d2f80c080a3b1e0fa45a78d5e9bfc
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-06-28 (Wed, 28 Jun 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
    M llvm/test/CodeGen/AMDGPU/simple-indirect-call.ll

  Log Message:
  -----------
  AMDGPU: Move AMDGPUAttributor run earlier

Move it up with other module passes. It's a higher level optimization
that should probably be done before hacking up the IR for codegen. It
should really be done earlier than this. We could possibly move this
with other IPO passes, but we'd have to stop inferring the lack of
lds.kernel.id calls and have the LDS module pass mark functions which
don't need the ID.

The one test change is because that pass is relying on the backend run
of SROA (which we ideally wouldn't have).




More information about the All-commits mailing list