aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/README.txt
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-10-15 16:06:03 +0000
committerChris Lattner <sabre@nondot.org>2008-10-15 16:06:03 +0000
commit92f978359a29a071a5fcb1c5a5782239f18b585d (patch)
treee39238dd80847bdd09a846b10574b5e92c3842ab /lib/Target/README.txt
parent200ca6116a47cc10d71538e961b51722d4340948 (diff)
downloadexternal_llvm-92f978359a29a071a5fcb1c5a5782239f18b585d.zip
external_llvm-92f978359a29a071a5fcb1c5a5782239f18b585d.tar.gz
external_llvm-92f978359a29a071a5fcb1c5a5782239f18b585d.tar.bz2
move PR1604 here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/README.txt')
-rw-r--r--lib/Target/README.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index 173c0bc..9831efb 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -954,3 +954,20 @@ should remove it, but it doesn't apply to memory objects.
//===---------------------------------------------------------------------===//
+Better mod/ref analysis for scanf would allow us to eliminate the vtable and a
+bunch of other stuff from this example (see PR1604):
+
+#include <cstdio>
+struct test {
+ int val;
+ virtual ~test() {}
+};
+
+int main() {
+ test t;
+ std::scanf("%d", &t.val);
+ std::printf("%d\n", t.val);
+}
+
+//===---------------------------------------------------------------------===//
+