[LLVMbugs] [Bug 6724] New: call to devirtualized thunk not being inlined

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 27 13:32:39 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=6724

           Summary: call to devirtualized thunk not being inlined
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: andersca at mac.com
                CC: llvmbugs at cs.uiuc.edu


The original C++ code is:

struct A {
  virtual int f() { return 1; }
};

struct B {
  virtual int f() { return 2; }
};

struct C : A, B {
  virtual int f() { return 3; }
};

struct D : C {
  virtual int f() { return 4; }
};

static int f(D* d) {
  B* b = d;
  return b->f();
};

int g() {
  D d;

  return f(&d);
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list