[llvm-bugs] [Bug 27631] Poor code generation from LLVM.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 8 10:06:45 PDT 2017


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

Simon Pilgrim <llvm-dev at redking.me.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Simon Pilgrim <llvm-dev at redking.me.uk> ---
Fixed in trunk.

By clang 4.0.0:

  xorps %xmm0, %xmm0
.LBB0_1: # =>This Inner Loop Header: Depth=1
  movaps %xmm0, 48(%rax)
  movaps %xmm0, 32(%rax)
  movaps %xmm0, 16(%rax)
  movaps %xmm0, (%rax)
  movd %ecx, %xmm1
  pshufd $0, %xmm1, %xmm1 # xmm1 = xmm1[0,0,0,0]
  movdqa %xmm1, 16(%rax)
  movdqa %xmm1, (%rax)
  incq %rcx
  addq $64, %rax
  cmpq $10000, %rcx # imm = 0x2710
  jne .LBB0_1
  retq

And clang 5.0.0/trunk:

  xorps %xmm0, %xmm0
.LBB0_1: # =>This Inner Loop Header: Depth=1
  movaps %xmm0, 48(%rax)
  movaps %xmm0, 32(%rax)
  movd %ecx, %xmm1
  pshufd $0, %xmm1, %xmm1 # xmm1 = xmm1[0,0,0,0]
  movdqa %xmm1, 16(%rax)
  movdqa %xmm1, (%rax)
  incq %rcx
  addq $64, %rax
  cmpq $10000, %rcx # imm = 0x2710
  jne .LBB0_1
  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/20170908/56b8223f/attachment.html>


More information about the llvm-bugs mailing list