llvm/test/Transforms/DeadArgElim/comdat.ll
Reid Kleckner 6dc628ff61 [IR] Copy comdats in GlobalObject::copyAttributesFrom
This is probably correct for all uses except cross-module IR linking,
where we need to move the comdat from the source module to the
destination module.

Fixes PR27870.

Reviewers: majnemer

Differential Revision: http://reviews.llvm.org/D20631

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270743 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-25 18:36:22 +00:00

15 lines
237 B
LLVM

; RUN: opt -S < %s -deadargelim | FileCheck %s
$f = comdat any
define void @f() comdat {
call void @g(i32 0)
ret void
}
define internal void @g(i32 %dead) comdat($f) {
ret void
}
; CHECK: define internal void @g() comdat($f) {