summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SpillPlacement.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-07-16 18:26:18 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-07-16 18:26:18 +0000
commitefeb3a196932361b80a01cddb824ee0e389279ef (patch)
tree1892e7f71639ca4d0ef8c494c915c51af5a3eabd /llvm/lib/CodeGen/SpillPlacement.h
parentc5454ff0465cc11974f8f499d697c2fe1ebcfcc1 (diff)
downloadbcm5719-llvm-efeb3a196932361b80a01cddb824ee0e389279ef.tar.gz
bcm5719-llvm-efeb3a196932361b80a01cddb824ee0e389279ef.zip
Remove floats from live range splitting costs.
These floats all represented block frequencies anyway, so just use the BlockFrequency class directly. Some floating point computations remain in tryLocalSplit(). They are estimating spill weights which are still floats. llvm-svn: 186435
Diffstat (limited to 'llvm/lib/CodeGen/SpillPlacement.h')
-rw-r--r--llvm/lib/CodeGen/SpillPlacement.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SpillPlacement.h b/llvm/lib/CodeGen/SpillPlacement.h
index a0480d587d6..105516bb62b 100644
--- a/llvm/lib/CodeGen/SpillPlacement.h
+++ b/llvm/lib/CodeGen/SpillPlacement.h
@@ -140,10 +140,8 @@ public:
/// getBlockFrequency - Return the estimated block execution frequency per
/// function invocation.
- float getBlockFrequency(unsigned Number) const {
- // FIXME: Return the BlockFrequency directly.
- const float Scale = 1.0f / BlockFrequency::getEntryFrequency();
- return BlockFrequencies[Number].getFrequency() * Scale;
+ BlockFrequency getBlockFrequency(unsigned Number) const {
+ return BlockFrequencies[Number];
}
private:
OpenPOWER on IntegriCloud