[all-commits] [llvm/llvm-project] 08803f: Unbundle KILL bundles in VirtRegRewriter

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Mon Aug 10 11:59:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 08803f0e62e82539756b94e2655dabdbdab39014
      https://github.com/llvm/llvm-project/commit/08803f0e62e82539756b94e2655dabdbdab39014
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2020-08-10 (Mon, 10 Aug 2020)

  Changed paths:
    M llvm/lib/CodeGen/VirtRegMap.cpp
    A llvm/test/CodeGen/AMDGPU/splitkit-copy-bundle.mir

  Log Message:
  -----------
  Unbundle KILL bundles in VirtRegRewriter

SplitKit forms invalid COPY subreg bundles without a leading
BUNDLE instruction. That manifests itself in post-RA scheduler
counting instruction and asserting on "Instruction count mismatch".

The bundle shall be undone by VirtRegRewriter::expandCopyBundle(),
but it does not because VirtRegRewriter::handleIdentityCopy() can
turn COPY bundle into a KILL bundle.

Process KILLs as well.

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




More information about the All-commits mailing list