[LLVMdev] ProfileEstimator inconsistency
    Roel Jordans 
    r.jordans at tue.nl
       
    Wed Dec 12 07:20:59 PST 2012
    
    
  
Hello all,
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)
Cheers,
  Roel
    
    
More information about the llvm-dev
mailing list