[llvm-bugs] [Bug 32717] New: Merging conflicting profiles fails in the IRMover with a non-friendly diagnostic

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 19 15:59:51 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32717

            Bug ID: 32717
           Summary: Merging conflicting profiles fails in the IRMover with
                    a non-friendly diagnostic
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: davide at freebsd.org
                CC: davidxl at google.com, eraman at google.com,
                    llvm-bugs at lists.llvm.org, simon.f.whittaker at gmail.com,
                    xur at google.com

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

-- 
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/20170419/3131f445/attachment-0001.html>


More information about the llvm-bugs mailing list