Update the branch weight metadata in JumpThreading pass.
[oota-llvm.git] / include / llvm / Analysis / BlockFrequencyInfo.h
index 2b6b16a3fb9b35fd903039667eecb0048293af0e..6f2a2b52276967a250935b86a7eb24188aad89e3 100644 (file)
@@ -45,6 +45,9 @@ public:
   /// floating points.
   BlockFrequency getBlockFreq(const BasicBlock *BB) const;
 
+  // Set the frequency of the given basic block.
+  void setBlockFreq(const BasicBlock *BB, uint64_t Freq);
+
   /// calculate - compute block frequency info for the given function.
   void calculate(const Function &F, const BranchProbabilityInfo &BPI,
                  const LoopInfo &LI);