summaryrefslogtreecommitdiff
path: root/clang-r353983e/include/llvm/Transforms/Instrumentation/ControlHeightReduction.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-r353983e/include/llvm/Transforms/Instrumentation/ControlHeightReduction.h')
-rw-r--r--clang-r353983e/include/llvm/Transforms/Instrumentation/ControlHeightReduction.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/clang-r353983e/include/llvm/Transforms/Instrumentation/ControlHeightReduction.h b/clang-r353983e/include/llvm/Transforms/Instrumentation/ControlHeightReduction.h
new file mode 100644
index 00000000..18b42858
--- /dev/null
+++ b/clang-r353983e/include/llvm/Transforms/Instrumentation/ControlHeightReduction.h
@@ -0,0 +1,30 @@
+//===- ControlHeightReduction.h - Control Height Reduction ------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// 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