diff options
author | Andrew Trick <atrick@apple.com> | 2013-02-09 01:11:01 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-02-09 01:11:01 +0000 |
commit | 6050edfe3e66ac45dbfaee72422b332ecaabb2ae (patch) | |
tree | 7e44bf6339eb0e34aa0605599da8f468c58ea509 /test/Transforms/LoopStrengthReduce/X86 | |
parent | 4fa57932c7b13ec42c563e33a2e40fd04194b64e (diff) | |
download | external_llvm-6050edfe3e66ac45dbfaee72422b332ecaabb2ae.zip external_llvm-6050edfe3e66ac45dbfaee72422b332ecaabb2ae.tar.gz external_llvm-6050edfe3e66ac45dbfaee72422b332ecaabb2ae.tar.bz2 |
LSR IVChain improvement.
Handle chains in which the same offset is used for both loads and
stores to the same array.
Fixes rdar://11410078.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopStrengthReduce/X86')
-rw-r--r-- | test/Transforms/LoopStrengthReduce/X86/2011-12-04-loserreg.ll | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/test/Transforms/LoopStrengthReduce/X86/2011-12-04-loserreg.ll b/test/Transforms/LoopStrengthReduce/X86/2011-12-04-loserreg.ll index 5108650..eedfc20 100644 --- a/test/Transforms/LoopStrengthReduce/X86/2011-12-04-loserreg.ll +++ b/test/Transforms/LoopStrengthReduce/X86/2011-12-04-loserreg.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s | FileCheck %s +; RUN: opt < %s -loop-reduce -S | FileCheck %s ; ; Test LSR's ability to prune formulae that refer to nonexistant ; AddRecs in other loops. @@ -15,13 +15,10 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3 target triple = "x86_64-apple-darwin" ; CHECK: @test -; CHECK: # %for.body{{$}} -; dummyiv copy should be removed -; CHECK-NOT: movq -; CHECK: # %for.cond19.preheader -; dummycnt should be removed -; CHECK-NOT: incq -; CHECK: # %for.body23{{$}} +; CHECK: for.body: +; CHECK: %lsr.iv +; CHECK-NOT: %dummyout +; CHECK: ret define i64 @test(i64 %count, float* nocapture %srcrow, i32* nocapture %destrow) nounwind uwtable ssp { entry: %cmp34 = icmp eq i64 %count, 0 |