aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-28 00:47:11 +0000
committerChris Lattner <sabre@nondot.org>2002-04-28 00:47:11 +0000
commitd80e973cec7e30839530d94f84748d99b03b0d9e (patch)
treedfb5d096ca18f3f5a33b8de0b0ac3bf0fe576d0c /include
parenta298d27808ecb8ffb574d6e50f56601db2ec5fda (diff)
downloadexternal_llvm-d80e973cec7e30839530d94f84748d99b03b0d9e.zip
external_llvm-d80e973cec7e30839530d94f84748d99b03b0d9e.tar.gz
external_llvm-d80e973cec7e30839530d94f84748d99b03b0d9e.tar.bz2
Initial checkin of simple&fast SSA based GCSE algorithm
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/Scalar/GCSE.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Scalar/GCSE.h b/include/llvm/Transforms/Scalar/GCSE.h
new file mode 100644
index 0000000..f3b005f
--- /dev/null
+++ b/include/llvm/Transforms/Scalar/GCSE.h
@@ -0,0 +1,16 @@
+//===-- GCSE.h - SSA based Global Common Subexpr Elimination -----*- C++ -*--=//
+//
+// This pass is designed to be a very quick global transformation that
+// eliminates global common subexpressions from a function. It does this by
+// examining the SSA value graph of the function, instead of doing slow
+// bit-vector computations.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_TRANSFORMS_SCALAR_GCSE_H
+#define LLVM_TRANSFORMS_SCALAR_GCSE_H
+
+class Pass;
+Pass *createGCSEPass();
+
+#endif