diff options
Diffstat (limited to 'clang-r344140b/include/llvm/Transforms/Instrumentation/ControlHeightReduction.h')
| -rw-r--r-- | clang-r344140b/include/llvm/Transforms/Instrumentation/ControlHeightReduction.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/clang-r344140b/include/llvm/Transforms/Instrumentation/ControlHeightReduction.h b/clang-r344140b/include/llvm/Transforms/Instrumentation/ControlHeightReduction.h new file mode 100644 index 00000000..460342d1 --- /dev/null +++ b/clang-r344140b/include/llvm/Transforms/Instrumentation/ControlHeightReduction.h @@ -0,0 +1,31 @@ +//===- ControlHeightReduction.h - Control Height Reduction ------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass merges conditional blocks of code and reduces the number of +// conditional branches in the hot paths based on profiles. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_CONTROLHEIGHTREDUCTION_H +#define LLVM_TRANSFORMS_INSTRUMENTATION_CONTROLHEIGHTREDUCTION_H + +#include "llvm/Analysis/LoopInfo.h" +#include "llvm/IR/PassManager.h" + +namespace llvm { + +class ControlHeightReductionPass : + public PassInfoMixin<ControlHeightReductionPass> { +public: + ControlHeightReductionPass(); + PreservedAnalyses run(Function &F, FunctionAnalysisManager &FAM); +}; +} // end namespace llvm + +#endif // LLVM_TRANSFORMS_INSTRUMENTATION_CONTROLHEIGHTREDUCTION_H |
