Simplify the computeOperandLatency API.
authorAndrew Trick <atrick@apple.com>
Thu, 23 Aug 2012 00:39:43 +0000 (00:39 +0000)
committerAndrew Trick <atrick@apple.com>
Thu, 23 Aug 2012 00:39:43 +0000 (00:39 +0000)
commitffd2526fa4e2d78564694b4797b96236c9ba9d85
treef6fdbd259a559ad660bbed0283d600a2ace1758f
parentfc4eafa0f490bd06d8191a2f007514b9e3ce0387
Simplify the computeOperandLatency API.

The logic for recomputing latency based on a ScheduleDAG edge was
shady. This bypasses the problem by requiring the client to provide
operand indices. This ensures consistent use of the machine model's
API.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162420 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/ScheduleDAG.h
include/llvm/CodeGen/ScheduleDAGInstrs.h
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/MachineScheduler.cpp
lib/CodeGen/ScheduleDAGInstrs.cpp
lib/CodeGen/TargetInstrInfoImpl.cpp