Fix a major bug in operand latency computation. The use index must be adjusted
authorEvan Cheng <evan.cheng@apple.com>
Thu, 28 Oct 2010 01:46:29 +0000 (01:46 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 28 Oct 2010 01:46:29 +0000 (01:46 +0000)
commit7c88cdcc3ba49101fa119ec3b403e9980934384e
tree3ba1dcb2eb4d868c10872cfbb729677bb935f27d
parente49406fd6399ac3ef38bde242ee7f1dca80f85d1
Fix a major bug in operand latency computation. The use index must be adjusted
by the number of defs first for it to match the instruction itinerary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117518 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp