diff options
Diffstat (limited to 'lib/CodeGen/SpillPlacement.h')
-rw-r--r-- | lib/CodeGen/SpillPlacement.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/SpillPlacement.h b/lib/CodeGen/SpillPlacement.h index 03dd58d6e9a9..9b9ecccf9049 100644 --- a/lib/CodeGen/SpillPlacement.h +++ b/lib/CodeGen/SpillPlacement.h @@ -29,6 +29,7 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/SparseSet.h" #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/Support/BlockFrequency.h" @@ -66,6 +67,9 @@ class SpillPlacement : public MachineFunctionPass { /// its inputs falls in the open interval (-Threshold;Threshold). BlockFrequency Threshold; + /// List of nodes that need to be updated in ::iterate. + SparseSet<unsigned> TodoList; + public: static char ID; // Pass identification, replacement for typeid. @@ -157,6 +161,8 @@ private: void activate(unsigned); void setThreshold(const BlockFrequency &Entry); + + bool update(unsigned); }; } // end namespace llvm |