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

Anders Carlsson andersca at mac.com
Sun Feb 6 12:16:49 PST 2011


Author: andersca
Date: Sun Feb  6 14:16:49 2011
New Revision: 124989

URL: http://llvm.org/viewvc/llvm-project?rev=124989&view=rev
Log:
Remove a virtual inheritance case that clang can devirtualize fully now.

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=124989&r1=124988&r2=124989&view=diff
==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Sun Feb  6 14:16:49 2011
@@ -1866,27 +1866,6 @@
 }
 //===---------------------------------------------------------------------===//
 
-clang -O3 fails to devirtualize this virtual inheritance case: (GCC PR45875)
-Looks related to PR3100
-
-struct c1 {};
-struct c10 : c1{
-  virtual void foo ();
-};
-struct c11 : c10, c1{
-  virtual void f6 ();
-};
-struct c28 : virtual c11{
-  void f6 ();
-};
-void check_c28 () {
-  c28 obj;
-  c11 *ptr = &obj;
-  ptr->f6 ();
-}
-
-//===---------------------------------------------------------------------===//
-
 We compile this:
 
 int foo(int a) { return (a & (~15)) / 16; }





More information about the llvm-commits mailing list