projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a35dae
)
Silence a warning.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 7 Aug 2008 13:36:30 +0000
(13:36 +0000)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 7 Aug 2008 13:36:30 +0000
(13:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54462
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/LiveIntervalAnalysis.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/LiveIntervalAnalysis.h
b/include/llvm/CodeGen/LiveIntervalAnalysis.h
index 488b0748a4c8cddbc8d9a855763af994d65eae7c..039aac543b3ec0f84a4cb52a7a39b51cc1510a52 100644
(file)
--- a/
include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/
include/llvm/CodeGen/LiveIntervalAnalysis.h
@@
-185,7
+185,7
@@
namespace llvm {
/// 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