[llvm-bugs] [Bug 40394] New: [DAGCombiner] crash when forming shuffle from build vector

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 21 10:06:36 PST 2019


            Bug ID: 40394
           Summary: [DAGCombiner] crash when forming shuffle from build
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: spatel+llvm at rotateright.com
                CC: llvm-bugs at lists.llvm.org

This will crash using llc built from trunk r351752:

target triple = "aarch64-unknown-linux-gnu"

define <4 x i32> @truncating_build_vector_crash(<4 x i16> %t0) {
  %t1 = extractelement <4 x i16> %t0, i32 2
  %vgetq_lane = zext i16 %t1 to i32
  %t2 = insertelement <4 x i32> undef, i32 %vgetq_lane, i64 0
  ret <4 x i32> %t2


The bug was introduced with:
https://reviews.llvm.org/D56281 / https://reviews.llvm.org/rL351198

I committed a fix that limits the transform to avoid the crash here:

I think we should pull that commit into the 8.0 release to avoid the crash.

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/20190121/f6309e5a/attachment.html>

More information about the llvm-bugs mailing list