diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index 144db236709..ba8b90ca47d 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -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.