summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
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
commit6d275fd6e102cb46e9353e8c24f9474dfd9653b5 (patch)
tree5062a5d2308f0c5b917220b2b68d963eee9df34c /llvm/lib/Target
parent843dacc937f811922768b357e5218a965553f66c (diff)
downloadbcm5719-llvm-6d275fd6e102cb46e9353e8c24f9474dfd9653b5.tar.gz
bcm5719-llvm-6d275fd6e102cb46e9353e8c24f9474dfd9653b5.zip
move PR1604 here.
llvm-svn: 57582
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/README.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt
index 173c0bc5f39..9831efbdf64 100644
--- a/llvm/lib/Target/README.txt
+++ b/llvm/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);
+}
+
+//===---------------------------------------------------------------------===//
+
OpenPOWER on IntegriCloud