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.
Details
Details
Diff Detail
Diff Detail
| Paths 
 |  Differential  D72655  
[AMDGPU] Fix getInstrLatency() always returning 1 ClosedPublic Authored by rampitec on Jan 13 2020, 2:48 PM. 
Details Summary We do not have InstrItinerary so generic getInstLatency() was always 
Diff Detail Event Timelinerampitec added a child revision: D72669: [AMDGPU] Model distance to instruction in bundle.Jan 13 2020, 5:06 PM This revision is now accepted and ready to land.Jan 13 2020, 7:25 PM Closed by commit rGeca44745871b: [AMDGPU] Fix getInstrLatency() always returning 1 (authored by rampitec).  ·  Explain WhyJan 14 2020, 1:13 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 237788 llvm/lib/Target/AMDGPU/SIInstrInfo.h
 llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
 llvm/test/CodeGen/AMDGPU/max.i16.ll
 llvm/test/CodeGen/AMDGPU/scheduler-handle-move-bundle.mir
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||