mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user