[AMDGPU] override isHighLatencyDef
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 28 Jan 2020 22:14:37 +0000 (14:14 -0800)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 29 Jan 2020 16:01:29 +0000 (08:01 -0800)
commitc2ad7ee1a9add223f8c9cdb5761c71cfdcda9136
tree703660ee7b9d1b551a29e0afe4bf9117ac654fbb
parentf717483acd5e7d278ecd54ae80d2c1138fb51d06
[AMDGPU] override isHighLatencyDef

SIMachineScheduler uses isHighLatencyInstruction with the same
sematincs, but TargetInstrInfo has virtual isHighLatencyDef
method, so override it instead.

Added FLAT to the list of high latency opcodes and a check for
mayLoad since stores are not technically high latency in terms
of data dependency.

This change did not produce any visible impact on our tests.

Differential Revision: https://reviews.llvm.org/D73582
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.h
llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp