diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-07-16 18:26:15 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-07-16 18:26:15 +0000 |
commit | 6d9fe79afe3a325fb05165758a20470475aca8e6 (patch) | |
tree | fc20fc8fbcdb5240531d745aebc2f2c2bbfb7041 /lib/CodeGen/RegAllocGreedy.cpp | |
parent | b95e0f6f2f43d2c9ae8dd9407f9216d02fa4c833 (diff) | |
download | external_llvm-6d9fe79afe3a325fb05165758a20470475aca8e6.zip external_llvm-6d9fe79afe3a325fb05165758a20470475aca8e6.tar.gz external_llvm-6d9fe79afe3a325fb05165758a20470475aca8e6.tar.bz2 |
Reapply r185393.
Original commit message:
Remove floating point computations from SpillPlacement.cpp.
Patch by Benjamin Kramer!
Use the BlockFrequency class instead of floats in the Hopfield network
computations. This rescales the node Bias field from a [-2;2] float
range to two block frequencies BiasN and BiasP pulling in opposite
directions. This construct has a more predictable behavior when block
frequencies saturate.
The per-node scaling factors are no longer necessary, assuming the block
frequencies around a bundle are consistent.
This patch can cause the register allocator to make different spilling
decisions. The differences should be small.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
0 files changed, 0 insertions, 0 deletions