summaryrefslogtreecommitdiff
path: root/lib/Target/README.txt
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-19 06:22:16 +0000
committerChris Lattner <sabre@nondot.org>2008-08-19 06:22:16 +0000
commit23f35bc3aebe72a04b0fedfc32e248d0defc558f (patch)
tree4a8ccddd24d96bcb75a4d5d0b51e7c4029c65918 /lib/Target/README.txt
parent4667b71f9380afad56cbdc1fd19ca32334086d2c (diff)
downloadllvm-23f35bc3aebe72a04b0fedfc32e248d0defc558f.tar.gz
llvm-23f35bc3aebe72a04b0fedfc32e248d0defc558f.tar.bz2
llvm-23f35bc3aebe72a04b0fedfc32e248d0defc558f.tar.xz
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/README.txt')
-rw-r--r--lib/Target/README.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index 1ee316c477..0214cbb84c 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -882,3 +882,20 @@ I think this basically amounts to a dag combine to simplify comparisons against
multiply hi's into a comparison against the mullo.
//===---------------------------------------------------------------------===//
+
+SROA is not promoting the union on the stack in this example, we should end
+up with no allocas.
+
+union vec2d {
+ double e[2];
+ double v __attribute__((vector_size(16)));
+};
+typedef union vec2d vec2d;
+
+static vec2d a={{1,2}}, b={{3,4}};
+
+vec2d foo () {
+ return (vec2d){ .v = a.v + b.v * (vec2d){{5,5}}.v };
+}
+
+//===---------------------------------------------------------------------===//