Mercurial > hg > CbC > CbC_llvm
diff lib/CodeGen/SpillPlacement.h @ 83:60c9769439b8 LLVM3.7
LLVM 3.7
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Feb 2015 14:55:36 +0900 |
parents | 54457678186b |
children | afa8332a0e37 |
line wrap: on
line diff
--- a/lib/CodeGen/SpillPlacement.h Mon Sep 08 22:07:30 2014 +0900 +++ b/lib/CodeGen/SpillPlacement.h Wed Feb 18 14:55:36 2015 +0900 @@ -62,6 +62,10 @@ // Block frequencies are computed once. Indexed by block number. SmallVector<BlockFrequency, 8> BlockFrequencies; + /// Decision threshold. A node gets the output value 0 if the weighted sum of + /// its inputs falls in the open interval (-Threshold;Threshold). + BlockFrequency Threshold; + public: static char ID; // Pass identification, replacement for typeid. @@ -152,6 +156,7 @@ void releaseMemory() override; void activate(unsigned); + void setThreshold(const BlockFrequency &Entry); }; } // end namespace llvm