forked from OSchip/llvm-project
parent
4e48f3df16
commit
12bc09c843
|
@ -1,4 +1,4 @@
|
|||
//===- BranchProbability.h - Branch Probability Analysis --------*- C++ -*-===//
|
||||
//===- BranchProbability.h - Branch Probability Wrapper ---------*- C++ -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
|
@ -34,7 +34,7 @@ public:
|
|||
|
||||
uint32_t getNumerator() const { return N; }
|
||||
uint32_t getDenominator() const { return D; }
|
||||
|
||||
|
||||
// Return (1 - Probability).
|
||||
BranchProbability getCompl() {
|
||||
return BranchProbability(D - N, D);
|
||||
|
|
Loading…
Reference in New Issue