[PATCH] RegAlloc: Account for a variable entry block frequency
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Apr 7 11:25:32 PDT 2014
Until r197284, the entry frequency was constant -- i.e., set to 2^14.
Although current ToT still has a constant entry frequency, since r197284
that has been an implementation detail (which is soon going to change).
- r204690 made the wrong assumption for the CSRCost metric. Adjust
callee-saved register cost based on entry frequency.
- r185393 made the wrong assumption (although it was valid at the
time). Update SpillPlacement.cpp::Threshold to be relative to the
entry frequency.
Since ToT still has 2^14 entry frequency, this should have no observable
functionality change.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: account-for-variable-entry-freq-2.patch
Type: application/octet-stream
Size: 15059 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140407/66ad7d80/attachment.obj>
More information about the llvm-commits
mailing list