[PATCH] Consider error-reporting calls cold in BPI

Hal Finkel hfinkel at anl.gov
Sun Oct 27 16:23:42 PDT 2013


Hello,

BranchProbabilityInfo, which is used by the SDAG builder to assign branch weights, contains a number of well-known heuristics for statically predicting branch outcomes. One of these heuristics assigns low probabilities to paths post-dominated by cold calls (calls with the cold attribute). This patch enhances that heuristic to consider 'error reporting' calls to also be cold. An 'error reporting' call is a call to perror or a call to fprintf, fwrite, etc. where stderr is the stream.

This is one of the suggested heuristics from:
http://impact.crhc.illinois.edu/shared/papers/pact-98-branchpred.pdf

I don't see any significant test-suite changes.

Please review.

Thanks again,
Hal

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: err-rep-cold.patch
Type: text/x-patch
Size: 8079 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131027/66b7b58c/attachment.bin>


More information about the llvm-commits mailing list