[PATCH] SROA: Handle a case of store size being smaller than allocation size

Reid Kleckner rnk at google.com
Thu Aug 21 17:18:18 PDT 2014


================
Comment at: test/Transforms/SROA/slice-width.ll:65
@@ +64,3 @@
+  %x_i8 = bitcast %union.Foo* %x to i8*
+  call void @llvm.memset.p0i8.i32(i8* %x_i8, i8 -1, i32 32, i32 16, i1 false)
+
----------------
Chandler Carruth wrote:
> Just test memset in the function above? We don't run other optimizations here, it's not going to forward or do dead store elim...
I don't need to copy anything out, but I do need to load the i64 in order to cause SROA to fire. I guess I'll stick to that in both test cases.

http://reviews.llvm.org/D5012






More information about the llvm-commits mailing list