aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-03-04 04:04:26 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-03-04 04:04:26 +0000
commit2f3c9b7562bcdc1795b2bd0ca28b283a8e972826 (patch)
tree734d1bef304ad56ca48ac7133af9f69375fee19c /include/llvm/Transforms
parent8d46a268c58368b106183026fbc96a7f3787ae0c (diff)
downloadexternal_llvm-2f3c9b7562bcdc1795b2bd0ca28b283a8e972826.zip
external_llvm-2f3c9b7562bcdc1795b2bd0ca28b283a8e972826.tar.gz
external_llvm-2f3c9b7562bcdc1795b2bd0ca28b283a8e972826.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20429 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/Scalar.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h
index ae4f32e..7832c93 100644
--- a/include/llvm/Transforms/Scalar.h
+++ b/include/llvm/Transforms/Scalar.h
@@ -129,9 +129,12 @@ FunctionPass *createLICMPass();
//===----------------------------------------------------------------------===//
//
// 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);
//===----------------------------------------------------------------------===//
//