Include loop-carried dependencies when computing instr heights.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 10 Aug 2012 20:11:38 +0000 (20:11 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 10 Aug 2012 20:11:38 +0000 (20:11 +0000)
commit8828c4ccd44cb49d13360cf86fd0b963f211f03f
tree25a9a4b4b887de7ee7fddb0009f9b5b39f7060c7
parent2a33cec66a5d1b755e2bb045bdac1690fdcff19e
Include loop-carried dependencies when computing instr heights.

When a trace ends with a back-edge, include PHIs in the loop header in
the height computations. This makes the critical path through a loop
more accurate by including the latencies of the last instructions in the
loop.

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