[LLVMbugs] [Bug 21206] New: inline removes a member of a comdat

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 8 06:42:45 PDT 2014


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

            Bug ID: 21206
           Summary: inline removes a member of a comdat
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Interprocedural Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: david.majnemer at gmail.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Similar to pr21191, but for inline.

$ cat test.ll
$c = comdat any
define linkonce_odr void @foo() comdat $c {
  ret void
}
define linkonce_odr void @bar() comdat $c {
  ret void
}
define void()* @zed()  {
  ret void()* @foo
}
$ opt -inline -S test.ll -o - 
; ModuleID = 'test.ll'

$c = comdat any

define linkonce_odr void @foo() comdat $c {
  ret void
}

define void ()* @zed() {
  ret void ()* @foo
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141008/04c4ddd4/attachment.html>


More information about the llvm-bugs mailing list