[llvm-bugs] [Bug 39275] New: wasm32: Failure to select what looks like a simd instruction?

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 12 18:53:01 PDT 2018


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

            Bug ID: 39275
           Summary: wasm32: Failure to select what looks like a simd
                    instruction?
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedbugs at nondot.org
          Reporter: alex at crichton.co
                CC: llvm-bugs at lists.llvm.org, tlively at google.com

I unfortunately haven't been able to reduce this much but compiling crates in
Rust with the `simd128` feature enabled causes a few to fail to compile. This
is presumably because with access to SIMD vectors LLVM will either
auto-vectorize or attempt to optimize loads/stores, but none of these crates
started with explicit SIMD (and the failures to codegen are limited to
optimized mode in Rust)

The first failure is this --
https://gist.github.com/alexcrichton/e902f1bd3ca5acc8a4b7c0902d5cb15c --
bytecode file. While `bugpoint` was able to reduce it the `bugpoint` reduction
looked a bit different than the original failure. I can try to reduce it more
though if that's helpful! (running `llc` over the file in that gist should
crash)

The second is this file --
https://gist.github.com/alexcrichton/d6d8556e11210ad02bc7348566c93826 -- which
looks similar to the first. This time `llc` requires the `-thread-model=single`
and `-wasm-enable-unimplemented-simd` flags to reproduce

-- 
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/20181013/4fe4befc/attachment.html>


More information about the llvm-bugs mailing list