HomePhabricator

[AMDGPU] Fix getInstrLatency() always returning 1

Authored by rampitec on Jan 13 2020, 2:30 PM.

Description

[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

Details

Committed
rampitecJan 14 2020, 1:08 AM
Differential Revision
D72655: [AMDGPU] Fix getInstrLatency() always returning 1
Parents
rG547abdd921e4: [mlir] Fix -Wunused
Branches
Unknown
Tags
Unknown