diff options
author | Dan Gohman <gohman@apple.com> | 2010-01-22 00:46:49 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-01-22 00:46:49 +0000 |
commit | 045f81981a61d283af9d6df1050cef6e7c7ff629 (patch) | |
tree | 7ff3408b837589b02774ce51d2459763a668ad58 /llvm/test/CodeGen/ARM | |
parent | f7b2fb51d191cb3fa668135a67c6b702c67d239e (diff) | |
download | bcm5719-llvm-045f81981a61d283af9d6df1050cef6e7c7ff629.tar.gz bcm5719-llvm-045f81981a61d283af9d6df1050cef6e7c7ff629.zip |
Revert LoopStrengthReduce.cpp to pre-r94061 for now.
llvm-svn: 94123
Diffstat (limited to 'llvm/test/CodeGen/ARM')
-rw-r--r-- | llvm/test/CodeGen/ARM/arm-negative-stride.ll | 26 | ||||
-rw-r--r-- | llvm/test/CodeGen/ARM/lsr-code-insertion.ll | 4 | ||||
-rw-r--r-- | llvm/test/CodeGen/ARM/remat.ll | 3 |
3 files changed, 4 insertions, 29 deletions
diff --git a/llvm/test/CodeGen/ARM/arm-negative-stride.ll b/llvm/test/CodeGen/ARM/arm-negative-stride.ll index 52ab8717c15..72ec8efcc44 100644 --- a/llvm/test/CodeGen/ARM/arm-negative-stride.ll +++ b/llvm/test/CodeGen/ARM/arm-negative-stride.ll @@ -1,32 +1,7 @@ ; RUN: llc < %s -march=arm | FileCheck %s -; This loop is rewritten with an indvar which counts down, which -; frees up a register from holding the trip count. - define void @test(i32* %P, i32 %A, i32 %i) nounwind { entry: -; CHECK: str r1, [{{r.*}}, +{{r.*}}, lsl #2] - icmp eq i32 %i, 0 ; <i1>:0 [#uses=1] - br i1 %0, label %return, label %bb - -bb: ; preds = %bb, %entry - %indvar = phi i32 [ 0, %entry ], [ %indvar.next, %bb ] ; <i32> [#uses=2] - %i_addr.09.0 = sub i32 %i, %indvar ; <i32> [#uses=1] - %tmp2 = getelementptr i32* %P, i32 %i_addr.09.0 ; <i32*> [#uses=1] - store i32 %A, i32* %tmp2 - %indvar.next = add i32 %indvar, 1 ; <i32> [#uses=2] - icmp eq i32 %indvar.next, %i ; <i1>:1 [#uses=1] - br i1 %1, label %return, label %bb - -return: ; preds = %bb, %entry - ret void -} - -; This loop has a non-address use of the count-up indvar, so -; it'll remain. Now the original store uses a negative-stride address. - -define void @test_with_forced_iv(i32* %P, i32 %A, i32 %i) nounwind { -entry: ; CHECK: str r1, [{{r.*}}, -{{r.*}}, lsl #2] icmp eq i32 %i, 0 ; <i1>:0 [#uses=1] br i1 %0, label %return, label %bb @@ -36,7 +11,6 @@ bb: ; preds = %bb, %entry %i_addr.09.0 = sub i32 %i, %indvar ; <i32> [#uses=1] %tmp2 = getelementptr i32* %P, i32 %i_addr.09.0 ; <i32*> [#uses=1] store i32 %A, i32* %tmp2 - store i32 %indvar, i32* null %indvar.next = add i32 %indvar, 1 ; <i32> [#uses=2] icmp eq i32 %indvar.next, %i ; <i1>:1 [#uses=1] br i1 %1, label %return, label %bb diff --git a/llvm/test/CodeGen/ARM/lsr-code-insertion.ll b/llvm/test/CodeGen/ARM/lsr-code-insertion.ll index 1bbb96deeef..507ec2c7bd3 100644 --- a/llvm/test/CodeGen/ARM/lsr-code-insertion.ll +++ b/llvm/test/CodeGen/ARM/lsr-code-insertion.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s -stats |& grep {39.*Number of machine instrs printed} -; RUN: llc < %s -stats |& not grep {.*Number of re-materialization} +; RUN: llc < %s -stats |& grep {40.*Number of machine instrs printed} +; RUN: llc < %s -stats |& grep {.*Number of re-materialization} ; This test really wants to check that the resultant "cond_true" block only ; has a single store in it, and that cond_true55 only has code to materialize ; the constant and do a store. We do *not* want something like this: diff --git a/llvm/test/CodeGen/ARM/remat.ll b/llvm/test/CodeGen/ARM/remat.ll index 9072bcb762d..9565c8bca6b 100644 --- a/llvm/test/CodeGen/ARM/remat.ll +++ b/llvm/test/CodeGen/ARM/remat.ll @@ -1,4 +1,5 @@ -; RUN: llc < %s -mtriple=arm-apple-darwin -stats -info-output-file - | not grep "Number of re-materialization" +; RUN: llc < %s -mtriple=arm-apple-darwin +; RUN: llc < %s -mtriple=arm-apple-darwin -stats -info-output-file - | grep "Number of re-materialization" | grep 3 %struct.CONTENTBOX = type { i32, i32, i32, i32, i32 } %struct.LOCBOX = type { i32, i32, i32, i32 } |