[all-commits] [llvm/llvm-project] 5ddfed: [AMDGPU] Fix deleting of move-immediate instructio...

Jay Foad via All-commits all-commits at lists.llvm.org
Wed Mar 2 08:11:37 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ddfedc9569fbeca0a70e0fda0863ee43f830599
      https://github.com/llvm/llvm-project/commit/5ddfedc9569fbeca0a70e0fda0863ee43f830599
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2022-03-02 (Wed, 02 Mar 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/test/CodeGen/AMDGPU/madak-inline-constant.mir

  Log Message:
  -----------
  [AMDGPU] Fix deleting of move-immediate instructions after folding

SIInstrInfo::FoldImmediate tried to delete move-immediate instructions
after folding them into their only use. This did not work because it was
checking hasOneNonDBGUse after doing the fold, at which point there
should be no uses. This seems to have no effect on codegen, it just
means less stuff for DCE to clean up later.

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




More information about the All-commits mailing list