diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-07-02 17:31:58 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-07-02 17:31:58 +0000 |
commit | 13be6bfb60836ef2aa62b2394854c108eaf36b14 (patch) | |
tree | 6aff5addc7922ff379e5c8fbc612ae93634400ba /llvm/lib/CodeGen/SpillPlacement.h | |
parent | fb73ec834ac28ede711f47d339ad1e0d24935c3f (diff) | |
download | bcm5719-llvm-13be6bfb60836ef2aa62b2394854c108eaf36b14.tar.gz bcm5719-llvm-13be6bfb60836ef2aa62b2394854c108eaf36b14.zip |
Revert (most of) r185393 and r185395.
"Remove floating point computations form SpillPlacement.cpp."
These commits caused test failures in lencod on clang-native-arm-lnt.
I suspect these changes are only exposing an existing issue, but
reverting anyway to keep the bots passing while we investigate.
llvm-svn: 185447
Diffstat (limited to 'llvm/lib/CodeGen/SpillPlacement.h')
-rw-r--r-- | llvm/lib/CodeGen/SpillPlacement.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SpillPlacement.h b/llvm/lib/CodeGen/SpillPlacement.h index a0480d587d6..fc412f817cd 100644 --- a/llvm/lib/CodeGen/SpillPlacement.h +++ b/llvm/lib/CodeGen/SpillPlacement.h @@ -30,7 +30,6 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallVector.h" #include "llvm/CodeGen/MachineFunctionPass.h" -#include "llvm/Support/BlockFrequency.h" namespace llvm { @@ -58,7 +57,7 @@ class SpillPlacement : public MachineFunctionPass { SmallVector<unsigned, 8> RecentPositive; // Block frequencies are computed once. Indexed by block number. - SmallVector<BlockFrequency, 4> BlockFrequencies; + SmallVector<float, 4> BlockFrequency; public: static char ID; // Pass identification, replacement for typeid. @@ -141,9 +140,7 @@ 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; + return BlockFrequency[Number]; } private: |