[llvm-bugs] [Bug 31309] New: Failure to combine scalar load+zext into vector load+zext

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 7 12:49:50 PST 2016


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

            Bug ID: 31309
           Summary: Failure to combine scalar load+zext into vector
                    load+zext
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

define <4 x i32> @load_i32_zext_i128_v4i32(i32* %in) {
  %1 = load i32, i32* %in
  %2 = zext i32 %1 to i128
  %3 = bitcast i128 %2 to <4 x i32>
  ret <4 x i32> %3
}

Current output:

load_i32_zext_i128_v4i32:
        movl    (%rdi), %eax
        vmovq   %rax, %xmm0
        retq

It would be better if we managed:

load_i32_zext_i128_v4i32:
        vmovd    (%rdi), %xmm0
        retq

-- 
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/20161207/46d16810/attachment.html>


More information about the llvm-bugs mailing list