[llvm-commits] [llvm] r114431 - /llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Sep 21 07:18:44 PDT 2010
On Sep 21, 2010, at 6:47 AM, Lang Hames wrote:
> --- llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp (original)
> +++ llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp Tue Sep 21 08:47:10 2010
> @@ -293,7 +293,8 @@
> - PBQP::PBQPNum cBenefit = std::pow(10.0f, loopInfo->getLoopDepth(mbb));
> + PBQP::PBQPNum cBenefit =
> + std::pow(10.0f, (float)loopInfo->getLoopDepth(mbb));
Hi Lang,
You should consider using LiveIntervals::getSpillWeight which is tempered so it never overflows.
/jakob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100921/7d271227/attachment.bin>
More information about the llvm-commits
mailing list