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

Chris Lattner sabre at nondot.org
Thu Jan 6 14:25:00 PST 2011


Author: lattner
Date: Thu Jan  6 16:25:00 2011
New Revision: 122978

URL: http://llvm.org/viewvc/llvm-project?rev=122978&view=rev
Log:
With Benjamin's recent amazing patches, we should be able to do even better things :)

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=122978&r1=122977&r2=122978&view=diff
==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Thu Jan  6 16:25:00 2011
@@ -2073,3 +2073,16 @@
 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.
+
+//===---------------------------------------------------------------------===//





More information about the llvm-commits mailing list