diff options
-rw-r--r-- | include/llvm/Transforms/Scalar.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index 144db23..ba8b90c 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -112,6 +112,16 @@ 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. // Pass *createSymbolStrippingPass(); |