summaryrefslogtreecommitdiffstats
path: root/polly/test/TempScop/not-a-reduction.c
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-04-29 06:27:02 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-04-29 06:27:02 +0000
commit758053788bde4747953f5f276ded345cd01323b1 (patch)
tree02f38df95a5327cb8644906d148b5bd8facf63f9 /polly/test/TempScop/not-a-reduction.c
parent011eae75123217b9125270ae08132a308cee7061 (diff)
downloadbcm5719-llvm-758053788bde4747953f5f276ded345cd01323b1.tar.gz
bcm5719-llvm-758053788bde4747953f5f276ded345cd01323b1.zip
Add initial version of Polly
This version is equivalent to commit ba26ebece8f5be84e9bd6315611d412af797147e in the old git repository. llvm-svn: 130476
Diffstat (limited to 'polly/test/TempScop/not-a-reduction.c')
-rw-r--r--polly/test/TempScop/not-a-reduction.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/polly/test/TempScop/not-a-reduction.c b/polly/test/TempScop/not-a-reduction.c
new file mode 100644
index 00000000000..7acddb4c2cc
--- /dev/null
+++ b/polly/test/TempScop/not-a-reduction.c
@@ -0,0 +1,13 @@
+#define TYPE float
+#define NUM 4
+
+TYPE A[NUM];
+TYPE B[NUM];
+TYPE C[NUM];
+
+void vector_multiply(void) {
+ int i;
+ for (i = 0; i < NUM; i++) {
+ A[i] = B[i] * C[i];
+ }
+}
OpenPOWER on IntegriCloud