[llvm-bugs] [Bug 40914] New: memory.copy on alloca addresses crashes

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 28 18:01:37 PST 2019


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

            Bug ID: 40914
           Summary: memory.copy on alloca addresses crashes
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: CONFIRMED
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: tlively at google.com
          Reporter: tlively at google.com
                CC: llvm-bugs at lists.llvm.org

llc -mattr=+bulk-memory fails with the following IR:

target triple = "wasm32-unknown-unknown"

declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i1)

define void @memcpy_alloca() {
  %p = alloca i8
  call void @llvm.memcpy.p0i8.p0i8.i32(i8* undef, i8* %p, i32 16, i1 false)
  ret void
}

-- 
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/20190301/e0f1f05e/attachment.html>


More information about the llvm-bugs mailing list