Clean up spill weight computation. Also some changes to give loop induction
authorEvan Cheng <evan.cheng@apple.com>
Mon, 21 Sep 2009 21:12:25 +0000 (21:12 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 21 Sep 2009 21:12:25 +0000 (21:12 +0000)
commitcf985a95454c935d8662ef5200c79ca0553b3da7
treef4f53dc8ca5f5a48dd109856d3c1dc631228efcb
parentb2bb7db9e242c54a4a84448ab503015a148e9286
Clean up spill weight computation. Also some changes to give loop induction
variable increment / decrement slighter high priority.

This has major impact on some micro-benchmarks. On MultiSource/Applications
and spec tests, it's a minor win. It also reduce 256.bzip instruction count
by 8%, 55 on 164.gzip on i386 / Darwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82485 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SimpleRegisterCoalescing.cpp
lib/CodeGen/SimpleRegisterCoalescing.h
test/CodeGen/ARM/2008-11-19-ScavengerAssert.ll
test/CodeGen/ARM/remat.ll
test/CodeGen/X86/2008-02-22-ReMatBug.ll
test/CodeGen/X86/2008-07-11-SpillerBug.ll
test/CodeGen/X86/2009-04-20-LinearScanOpt.ll
test/CodeGen/X86/2009-09-21-NoSpillLoopCount.ll [new file with mode: 0644]
test/CodeGen/X86/stack-color-with-reg.ll