[llvm-bugs] [Bug 39564] New: Assert in Hot/cold splitting

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 5 13:32:52 PST 2018


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

            Bug ID: 39564
           Summary: Assert in Hot/cold splitting
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Interprocedural Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: jun.l at samsung.com
                CC: llvm-bugs at lists.llvm.org

Noticed that the IR below assert in the hot/cold split pass.

; opt -passes=hotcoldsplit -S assert.ll

define void @foo(i32 %cond) {
entry:
  %tobool = icmp eq i32 %cond, 0
  br i1 %tobool, label %if.end, label %coldbb

coldbb:
  call void (...) @sink()
  br i1 undef, label %if.end, label %coldbb2

coldbb2:
  br label %if.end

if.end:
  %p = phi i32 [0, %entry], [1, %coldbb], [3, %coldbb2]
  ret void
}

declare void @sink(...) cold

-- 
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/20181105/a543ceff/attachment.html>


More information about the llvm-bugs mailing list