[llvm-commits] [llvm] r54462 - /llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h
Matthijs Kooijman
matthijs at stdin.nl
Thu Aug 7 06:36:32 PDT 2008
Author: matthijs
Date: Thu Aug 7 08:36:30 2008
New Revision: 54462
URL: http://llvm.org/viewvc/llvm-project?rev=54462&view=rev
Log:
Silence a warning.
Modified:
llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h
Modified: llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h?rev=54462&r1=54461&r2=54462&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h Thu Aug 7 08:36:30 2008
@@ -185,7 +185,7 @@
/// of instructions in a given LiveInterval.
unsigned getApproximateInstructionCount(LiveInterval& I) {
double IntervalPercentage = getScaledIntervalSize(I) / 1000.0;
- return IntervalPercentage * FunctionSize;
+ return (unsigned)(IntervalPercentage * FunctionSize);
}
/// getMBBFromIndex - given an index in any instruction of an
More information about the llvm-commits
mailing list