[all-commits] [llvm/llvm-project] eca447: [AMDGPU] Fix getInstrLatency() always returning 1

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Tue Jan 14 01:08:40 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: eca44745871bc46728903aaa262abc6344d4f959
      https://github.com/llvm/llvm-project/commit/eca44745871bc46728903aaa262abc6344d4f959
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2020-01-14 (Tue, 14 Jan 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.h
    M llvm/test/CodeGen/AMDGPU/max.i16.ll
    M llvm/test/CodeGen/AMDGPU/scheduler-handle-move-bundle.mir

  Log Message:
  -----------
  [AMDGPU] Fix getInstrLatency() always returning 1

We do not have InstrItinerary so generic getInstLatency() was always
defaulting to return 1 cycle. We need to use TargetSchedModel instead
to compute an instruction's latency.

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




More information about the All-commits mailing list