diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-15 17:10:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-15 17:10:24 +0000 |
commit | 87565c1d779a1903d10ddd11d886c0f79ee430b5 (patch) | |
tree | 6903f5ac283c8f57051b49eb6221c6e56b73e58e /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 2c13ab2bb840295ffba5f28bb1df7aa0b8d9736e (diff) |
improve portability to systems that don't have powf/modf (e.g. solaris 9)
patch by Evzen Muller!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index aa0597f687..99d94c3015 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -1634,7 +1634,7 @@ LiveIntervals::getSpillWeight(bool isDef, bool isUse, unsigned loopDepth) { // overflow a float. This expression behaves like 10^d for small d, but is // more tempered for large d. At d=200 we get 6.7e33 which leaves a bit of // headroom before overflow. - float lc = powf(1 + (100.0f / (loopDepth+10)), (float)loopDepth); + float lc = std::pow(1 + (100.0f / (loopDepth+10)), (float)loopDepth); return (isDef + isUse) * lc; } |