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 | 90131ba41b81e394bcea8f19229c4cfcfdec25a6 (patch) | |
tree | 6903f5ac283c8f57051b49eb6221c6e56b73e58e /lib/CodeGen/RegAllocPBQP.cpp | |
parent | daa8e0efc9b646d89ca9deb9acd3b8f2eb349a1d (diff) | |
download | external_llvm-90131ba41b81e394bcea8f19229c4cfcfdec25a6.zip external_llvm-90131ba41b81e394bcea8f19229c4cfcfdec25a6.tar.gz external_llvm-90131ba41b81e394bcea8f19229c4cfcfdec25a6.tar.bz2 |
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/RegAllocPBQP.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocPBQP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index 81cfd8f..4fafd28 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -489,7 +489,7 @@ PBQPRegAlloc::CoalesceMap PBQPRegAlloc::findCoalesces() { // did, but none of their definitions would prevent us from coalescing. // We're good to go with the coalesce. - float cBenefit = powf(10.0f, loopInfo->getLoopDepth(mbb)) / 5.0; + float cBenefit = std::pow(10.0f, (float)loopInfo->getLoopDepth(mbb)) / 5.0; coalescesFound[RegPair(srcReg, dstReg)] = cBenefit; coalescesFound[RegPair(dstReg, srcReg)] = cBenefit; |