mi-sched: Precompute a PressureDiff for each instruction, adjust for liveness later.
authorAndrew Trick <atrick@apple.com>
Fri, 30 Aug 2013 03:49:48 +0000 (03:49 +0000)
committerAndrew Trick <atrick@apple.com>
Fri, 30 Aug 2013 03:49:48 +0000 (03:49 +0000)
commit4c60b8a78d811a5b16ae45f6957933fb479bab58
tree35355754c69394e12072b41a8d9c9978f0bc241e
parente206efd39bcc00600d816b67b041820b35d023fe
mi-sched: Precompute a PressureDiff for each instruction, adjust for liveness later.

Created SUPressureDiffs array to hold the per node PDiff computed during DAG building.

Added a getUpwardPressureDelta API that will soon replace the old
one. Compute PressureDelta here from the precomputed PressureDiffs.

Updating for liveness will come next.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189640 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineScheduler.h
include/llvm/CodeGen/RegisterPressure.h
include/llvm/CodeGen/ScheduleDAGInstrs.h
lib/CodeGen/MachineScheduler.cpp
lib/CodeGen/RegisterPressure.cpp
lib/CodeGen/ScheduleDAGInstrs.cpp
lib/Target/Hexagon/HexagonMachineScheduler.cpp
lib/Target/Hexagon/HexagonMachineScheduler.h
test/CodeGen/X86/misched-balance.ll
test/CodeGen/X86/misched-matmul.ll
test/CodeGen/X86/misched-matrix.ll