summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-06 22:25:00 +0000
committerChris Lattner <sabre@nondot.org>2011-01-06 22:25:00 +0000
commit84184b7207f4ecf7f58937f137dff442a56419f7 (patch)
treeb4df85b3cfc6a03c9ae2c2d01d05cc7a0f97b939
parent171608e738a40d85a5fda467b1011234aaf54b73 (diff)
downloadbcm5719-llvm-84184b7207f4ecf7f58937f137dff442a56419f7.tar.gz
bcm5719-llvm-84184b7207f4ecf7f58937f137dff442a56419f7.zip
With Benjamin's recent amazing patches, we should be able to do even better things :)
llvm-svn: 122978
-rw-r--r--llvm/lib/Target/README.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt
index bedc893fbb1..d13ea736a10 100644
--- a/llvm/lib/Target/README.txt
+++ b/llvm/lib/Target/README.txt
@@ -2073,3 +2073,16 @@ The icmp should fold to false. This CSE opportunity is only available
after GVN and InstCombine have run.
//===---------------------------------------------------------------------===//
+
+memcpyopt should turn this:
+
+define i8* @test10(i32 %x) {
+ %alloc = call noalias i8* @malloc(i32 %x) nounwind
+ call void @llvm.memset.p0i8.i32(i8* %alloc, i8 0, i32 %x, i32 1, i1 false)
+ ret i8* %alloc
+}
+
+into a call to calloc. We should make sure that we analyze calloc as
+aggressively as malloc though.
+
+//===---------------------------------------------------------------------===//
OpenPOWER on IntegriCloud