[llvm-commits] [llvm] r57582 - /llvm/trunk/lib/Target/README.txt
Chris Lattner
sabre at nondot.org
Wed Oct 15 09:06:03 PDT 2008
Author: lattner
Date: Wed Oct 15 11:06:03 2008
New Revision: 57582
URL: http://llvm.org/viewvc/llvm-project?rev=57582&view=rev
Log:
move PR1604 here.
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=57582&r1=57581&r2=57582&view=diff
==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Wed Oct 15 11:06:03 2008
@@ -954,3 +954,20 @@
//===---------------------------------------------------------------------===//
+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);
+}
+
+//===---------------------------------------------------------------------===//
+
More information about the llvm-commits
mailing list