Add expr reassociation pass prototype
authorChris Lattner <sabre@nondot.org>
Wed, 8 May 2002 22:19:01 +0000 (22:19 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 8 May 2002 22:19:01 +0000 (22:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2558 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Scalar.h

index 144db2367092cae366b6baf06a92997f4cf13438..ba8b90ca47dc70f9f045d03909ec7a7df207fed9 100644 (file)
@@ -110,6 +110,16 @@ Pass *createInstructionCombiningPass();
 Pass *createPromoteMemoryToRegister();
 
 
+//===----------------------------------------------------------------------===//
+//
+// This pass reassociates commutative expressions in an order that is designed
+// to promote better constant propogation, GCSE, LICM, PRE...
+//
+// For example:  4 + (x + 5)  ->  x + (4 + 5)
+//
+Pass *createReassociatePass();
+
+
 //===----------------------------------------------------------------------===//
 //
 // These functions removes symbols from functions and modules.