[llvm-commits] [llvm] r54985 - /llvm/trunk/lib/Target/README.txt

Chris Lattner sabre at nondot.org
Mon Aug 18 23:22:16 PDT 2008


Author: lattner
Date: Tue Aug 19 01:22:16 2008
New Revision: 54985

URL: http://llvm.org/viewvc/llvm-project?rev=54985&view=rev
Log:
add a note

Modified:
    llvm/trunk/lib/Target/README.txt

Modified: llvm/trunk/lib/Target/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/README.txt?rev=54985&r1=54984&r2=54985&view=diff

==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Tue Aug 19 01:22:16 2008
@@ -882,3 +882,20 @@
 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 };
+}
+
+//===---------------------------------------------------------------------===//





More information about the llvm-commits mailing list