<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Merging conflicting profiles fails in the IRMover with a non-friendly diagnostic"
href="https://bugs.llvm.org/show_bug.cgi?id=32717">32717</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Merging conflicting profiles fails in the IRMover with a non-friendly diagnostic
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>davide@freebsd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>davidxl@google.com, eraman@google.com, llvm-bugs@lists.llvm.org, simon.f.whittaker@gmail.com, xur@google.com
</td>
</tr></table>
<p>
<div>
<pre>Reduced from a case I hit in the wild.
$ cat adler.ll
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-scei-ps4"
define i64 @tinkywinky() {
ret i64 0
}
!llvm.module.flags = !{!0}
!0 = !{i32 1, !"ProfileSummary", !1}
!1 = !{!2, !3, !4, !5, !6, !7, !8, !9}
!2 = !{!"ProfileFormat", !"InstrProf"}
!3 = !{!"TotalCount", i64 0}
!4 = !{!"MaxCount", i64 0}
!5 = !{!"MaxInternalCount", i64 0}
!6 = !{!"MaxFunctionCount", i64 0}
!7 = !{!"NumCounts", i64 0}
!8 = !{!"NumFunctions", i64 0}
!9 = !{!"DetailedSummary", !10}
!10 = !{!11, !12, !13, !14, !15, !16, !16, !17, !17, !18, !19, !20, !21, !22,
!23, !24, !25, !26}
!11 = !{i32 10000, i64 0, i32 0}
!12 = !{i32 100000, i64 0, i32 0}
!13 = !{i32 200000, i64 0, i32 0}
!14 = !{i32 300000, i64 0, i32 0}
!15 = !{i32 400000, i64 0, i32 0}
!16 = !{i32 500000, i64 0, i32 0}
!17 = !{i32 600000, i64 0, i32 0}
!18 = !{i32 700000, i64 0, i32 0}
!19 = !{i32 800000, i64 0, i32 0}
!20 = !{i32 900000, i64 0, i32 0}
!21 = !{i32 950000, i64 0, i32 0}
!22 = !{i32 990000, i64 0, i32 0}
!23 = !{i32 999000, i64 0, i32 0}
!24 = !{i32 999900, i64 0, i32 0}
!25 = !{i32 999990, i64 0, i32 0}
!26 = !{i32 999999, i64 0, i32 0}
]$ cat main.ll
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-scei-ps4"
define i32 @patatino() {
ret i32 0
}
!llvm.module.flags = !{!0}
!0 = !{i32 1, !"ProfileSummary", !1}
!1 = !{!2, !3, !4, !5, !6, !7, !8, !9}
!2 = !{!"ProfileFormat", !"InstrProf"}
!3 = !{!"TotalCount", i64 105148752377}
!4 = !{!"MaxCount", i64 7107491985}
!5 = !{!"MaxInternalCount", i64 6186825744}
!6 = !{!"MaxFunctionCount", i64 7107491985}
!7 = !{!"NumCounts", i64 128499}
!8 = !{!"NumFunctions", i64 33234}
!9 = !{!"DetailedSummary", !10}
!10 = !{!11, !12, !13, !14, !15, !16, !16, !17, !17, !18, !19, !20, !21, !22,
!23, !24, !25, !26}
!11 = !{i32 10000, i64 7107491985, i32 1}
!12 = !{i32 100000, i64 6186825744, i32 2}
!13 = !{i32 200000, i64 1175154662, i32 7}
!14 = !{i32 300000, i64 635580706, i32 20}
!15 = !{i32 400000, i64 395565517, i32 42}
!16 = !{i32 500000, i64 250826197, i32 75}
!17 = !{i32 600000, i64 96522752, i32 150}
!18 = !{i32 700000, i64 49363736, i32 311}
!19 = !{i32 800000, i64 25985024, i32 599}
!20 = !{i32 900000, i64 9803979, i32 1273}
!21 = !{i32 950000, i64 4164740, i32 2053}
!22 = !{i32 990000, i64 658981, i32 4382}
!23 = !{i32 999000, i64 44010, i32 8841}
!24 = !{i32 999900, i64 13789, i32 13065}
!25 = !{i32 999990, i64 1913, i32 14489}
!26 = !{i32 999999, i64 160, i32 15937}
Script to reproduce (adjusting the paths)
$ cat run.sh
rm -rf main.o adler.o
~/work/llvm/build-clang/bin/llvm-as /home/davide/smbrokenpgo/reduced/main.ll -o
main.o
~/work/llvm/build-clang/bin/llvm-as /home/davide/smbrokenpgo/reduced/adler.ll
-o adler.o
~/work/llvm/build-clang/bin/ld.lld main.o adler.o</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>