[llvm-commits] CVS: llvm/include/llvm/Transforms/Scalar.h
Jeff Cohen
jeffc at jolt-lang.org
Thu Mar 3 20:04:37 PST 2005
Changes in directory llvm/include/llvm/Transforms:
Scalar.h updated: 1.52 -> 1.53
---
Log message:
Add support for not strength reducing GEPs where the element size is a small
power of two. This emphatically includes the zeroeth power of two.
---
Diffs of the changes: (+5 -2)
Scalar.h | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/Transforms/Scalar.h
diff -u llvm/include/llvm/Transforms/Scalar.h:1.52 llvm/include/llvm/Transforms/Scalar.h:1.53
--- llvm/include/llvm/Transforms/Scalar.h:1.52 Wed Mar 2 19:03:10 2005
+++ llvm/include/llvm/Transforms/Scalar.h Thu Mar 3 22:04:26 2005
@@ -129,9 +129,12 @@
//===----------------------------------------------------------------------===//
//
// LoopStrengthReduce - This pass is strength reduces GEP instructions that use
-// a loop's canonical induction variable as one of their indices.
+// a loop's canonical induction variable as one of their indices. The
+// MaxTargetAMSize is the largest element size that the target architecture
+// can handle in its addressing modes. Power of two multipliers less than or
+// equal to this value are not reduced.
//
-FunctionPass *createLoopStrengthReducePass();
+FunctionPass *createLoopStrengthReducePass(unsigned MaxTargetAMSize = 1);
//===----------------------------------------------------------------------===//
//
More information about the llvm-commits
mailing list