https://bugs.llvm.org/show_bug.cgi?id=36120
Bug ID: 36120
Summary: IR PGO Instr generation error for comdat + MSVC triple
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Miscellaneous Instrumentation passes
Assignee: unassignedb...@nondot.org
Reporter: jbc.enge...@gmail.com
CC: llvm-bugs@lists.llvm.org
Testcase:
```
; File: irpgo.ll
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
$_D4main3fooFZi = comdat any
define i32 @_D4main3fooFZi() #0 comdat {
ret i32 42
}
attributes #0 = { uwtable }
```
Opt errors when generating IR PGO instrumentation:
`opt -pgo-instr-gen -instrprof -verify irpgo.ll -S`
The reported error is:
```
comdat global value has private linkage
[1 x i64]* @__profc__D4main3fooFZi
LLVM ERROR: Broken module found, compilation aborted!
```
Tested with LLVM 6.0.0 and LLVM trunk
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs