[all-commits] [llvm/llvm-project] 76b7d3: [AMDGPU] Add TII::isIgnorableUse() to allow VOP re...

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Wed Jul 14 13:04:16 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76b7d3432e38bb7690c3bbd4940786b5cb751b95
      https://github.com/llvm/llvm-project/commit/76b7d3432e38bb7690c3bbd4940786b5cb751b95
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2021-07-14 (Wed, 14 Jul 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetInstrInfo.h
    M llvm/lib/CodeGen/LiveRangeEdit.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.h
    M llvm/test/CodeGen/AMDGPU/remat-sop.mir
    M llvm/test/CodeGen/AMDGPU/remat-vop.mir

  Log Message:
  -----------
  [AMDGPU] Add TII::isIgnorableUse() to allow VOP rematerialization

Any def of EXEC prevents rematerialization of any VOP instruction
because of the physreg use. Create a callback to check if the
physreg use can be ingored to allow rematerialization.

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




More information about the All-commits mailing list