summaryrefslogtreecommitdiff
path: root/lib
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
commit01cdc2016d59acbf596d367da064a5f9da7fc8d8 (patch)
tree73f9b8025114930ee13061775780cc618789fb0e /lib
parentf1cadf28991b2643128bfe38990ff235f2cb1491 (diff)
downloadllvm-01cdc2016d59acbf596d367da064a5f9da7fc8d8.tar.gz
llvm-01cdc2016d59acbf596d367da064a5f9da7fc8d8.tar.bz2
llvm-01cdc2016d59acbf596d367da064a5f9da7fc8d8.tar.xz
With Benjamin's recent amazing patches, we should be able to do even better things :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/README.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index bedc893fbb..d13ea736a1 100644
--- a/lib/Target/README.txt
+++ b/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.
+
+//===---------------------------------------------------------------------===//