summaryrefslogtreecommitdiff
path: root/test/Transforms/LoopStrengthReduce
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-04-28 23:07:49 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-04-28 23:07:49 +0000
commitaf09fb613f354e5fa88d5d41480c6f302f2418e8 (patch)
tree08b4ca0a4dafb64366dc0cfeb9c9745c97a02a9a /test/Transforms/LoopStrengthReduce
parent07c3167c2bbb30206536c564d8e03311caeb067f (diff)
downloadllvm-af09fb613f354e5fa88d5d41480c6f302f2418e8.tar.gz
llvm-af09fb613f354e5fa88d5d41480c6f302f2418e8.tar.bz2
llvm-af09fb613f354e5fa88d5d41480c6f302f2418e8.tar.xz
Revert r207271 for now. This commit introduced a test case that ran
clang directly from the LLVM test suite! That doesn't work. I've followed up on the review thread to try and get a viable solution sorted out, but trying to get the tree clean here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopStrengthReduce')
-rw-r--r--test/Transforms/LoopStrengthReduce/ARM64/lit.local.cfg2
-rw-r--r--test/Transforms/LoopStrengthReduce/ARM64/req-regs.c36
2 files changed, 1 insertions, 37 deletions
diff --git a/test/Transforms/LoopStrengthReduce/ARM64/lit.local.cfg b/test/Transforms/LoopStrengthReduce/ARM64/lit.local.cfg
index f8162f04c5..a49957999f 100644
--- a/test/Transforms/LoopStrengthReduce/ARM64/lit.local.cfg
+++ b/test/Transforms/LoopStrengthReduce/ARM64/lit.local.cfg
@@ -1,4 +1,4 @@
-config.suffixes = ['.ll' '.c']
+config.suffixes = ['.ll']
targets = set(config.root.targets_to_build.split())
if not 'ARM64' in targets:
diff --git a/test/Transforms/LoopStrengthReduce/ARM64/req-regs.c b/test/Transforms/LoopStrengthReduce/ARM64/req-regs.c
deleted file mode 100644
index 0c3c1dd503..0000000000
--- a/test/Transforms/LoopStrengthReduce/ARM64/req-regs.c
+++ /dev/null
@@ -1,36 +0,0 @@
-// RUN: clang %s -O3 -target arm64-apple-ios -o - -S -mllvm -debug-only=loop-reduce 2>&1| FileCheck %s
-// REQUIRES: asserts
-
-// LSR used to fail here due to a bug in the ReqRegs test. To complicate
-// things, this could only be reproduced with clang because the uses would
-// come out in different order when invoked through llc.
-
-// CHECK: The chosen solution requires
-// CHECK-NOT: No Satisfactory Solution
-
-typedef unsigned long iter_t;
-void use_int(int result);
-
-struct _state {
- int N;
- int M;
- int K;
- double* data;
-};
-void
-do_integer_add(iter_t iterations, void* cookie)
-{
- struct _state *pState = (struct _state*)cookie;
- register int i;
- register int a = pState->N + 57;
-
- while (iterations-- > 0) {
- for (i = 1; i < 1001; ++i) {
- a=a+a+i; a=a+a+i; a=a+a+i; a=a+a+i;
- a=a+a+i; a=a+a+i; a=a+a+i; a=a+a+i;
- a=a+a+i; a=a+a+i;
-
- }
- }
- use_int(a);
-}