[LLVMbugs] [Bug 21191] New: globalopt removes a member of a comdat

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 7 10:43:16 PDT 2014


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

            Bug ID: 21191
           Summary: globalopt 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

This is similar to pr20981, but with globalopt:
-------------------------------------------------
$ 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()  {
  call void @foo()
  ret void
}
$ ./build-patch/bin/opt -globalopt -S test.ll -o - 
; ModuleID = 'test.ll'

$c = comdat any

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

define void @zed() {
  call void @foo()
  ret void
}
---------------------------------------------

Note that bar has been removed.

-- 
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/20141007/4360c571/attachment.html>


More information about the llvm-bugs mailing list