[llvm-bugs] [Bug 33971] New: X86: Crash in FEntryInserter pass when the first basic block is empty (Linux Kernel)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 28 00:19:59 PDT 2017


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

            Bug ID: 33971
           Summary: X86: Crash in FEntryInserter pass when the first basic
                    block is empty (Linux Kernel)
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: manojgupta at google.com
          Reporter: manojgupta at google.com
                CC: chandlerc at gmail.com, hfinkel at anl.gov,
                    llozano at chromium.org, llvm-bugs at lists.llvm.org,
                    niravd at google.com

FEntryInserter pass invoked with -mfentry option crashes if the first basic
block is empty.

Reduced test case:
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: inlinehint minsize noredzone nounwind optsize sspstrong
define void @test() #0 {
entry:
  br label %bb1
bb1:
  call void @address_taken(i64 ptrtoint (i8* blockaddress(@test2, %bb1) to
i64), i32 512)
  ret void
}

; Function Attrs: minsize noredzone optsize
declare void @address_taken(i64, i32) local_unnamed_addr
attributes #0 = { inlinehint minsize noredzone nounwind optsize sspstrong
"fentry-call"="true" }

-- 
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/20170728/e44fa943/attachment.html>


More information about the llvm-bugs mailing list