diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-02-21 02:06:47 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-02-21 02:06:47 +0000 |
commit | d9fb7124035d6f95fb08c5157ab1813fbb2a282f (patch) | |
tree | 4eea0bdefddeeb15360a0c1b03206707d7f3614a /test/CodeGen/X86/loop-strength-reduce-2.ll | |
parent | 5a45d76c25d859c526fcdcdec3f07c97fec07d6b (diff) | |
download | external_llvm-d9fb7124035d6f95fb08c5157ab1813fbb2a282f.zip external_llvm-d9fb7124035d6f95fb08c5157ab1813fbb2a282f.tar.gz external_llvm-d9fb7124035d6f95fb08c5157ab1813fbb2a282f.tar.bz2 |
Teach LSR sink to sink the immediate portion of the common expression back into uses if they fit in address modes of all the uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/loop-strength-reduce-2.ll')
-rw-r--r-- | test/CodeGen/X86/loop-strength-reduce-2.ll | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/X86/loop-strength-reduce-2.ll b/test/CodeGen/X86/loop-strength-reduce-2.ll index b67e618..8ea5bdb 100644 --- a/test/CodeGen/X86/loop-strength-reduce-2.ll +++ b/test/CodeGen/X86/loop-strength-reduce-2.ll @@ -1,8 +1,10 @@ ; RUN: llvm-as < %s | llc -march=x86 -relocation-model=pic | \ ; RUN: grep {, 4} | count 1 +; RUN: llvm-as < %s | llc -march=x86 | not grep lea ; ; Make sure the common loop invariant A is hoisted up to preheader, ; since too many registers are needed to subsume it into the addressing modes. +; It's safe to sink A in when it's not pic. @A = global [16 x [16 x i32]] zeroinitializer, align 32 ; <[16 x [16 x i32]]*> [#uses=2] |