[all-commits] [llvm/llvm-project] c320e8: AMDGPU: Fix debug info handling in post-RA bundler

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Feb 16 07:42:26 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c320e8196ae67a4eaa72253ed9013dda28eaf390
      https://github.com/llvm/llvm-project/commit/c320e8196ae67a4eaa72253ed9013dda28eaf390
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2021-02-16 (Tue, 16 Feb 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIPostRABundler.cpp
    A llvm/test/CodeGen/AMDGPU/post-ra-soft-clause-dbg-info.ll
    M llvm/test/CodeGen/AMDGPU/postra-bundle-memops.mir

  Log Message:
  -----------
  AMDGPU: Fix debug info handling in post-RA bundler

This was allowing debug instructions to break the bundling, which
would change scheduling behavior. Bundle debug info / kills inside
the bundle. This seems to work OK, although the asm printer doesn't
understand these in a bundle. This implicitly expects the memory
legalizer to unbundle. It would probably be slightly nicer to move
these after.

Rewrite the loop to be clearer and make sure we don't end a bundle on
a meta instruction, only allow them in between other valid bundle
instructions.




More information about the All-commits mailing list