[LLVMdev] ProfileEstimator inconsistency
r.jordans at tue.nl
Wed Dec 12 07:20:59 PST 2012
I was trying to use the profile estimator and ran into the following issue.
An initial weight is assigned to a function entry in
lib/Analysis/ProfileEstimator.cpp on line 340.
In the code this weight is pow(2.0, 32.0) whereas the comment three
lines up explains that this should be 1.0
Can someone fix this in trunk? (replacing 'pow(2.0, 32.0)' with '1.0'
worked for me)
More information about the llvm-dev