https://llvm.org/bugs/show_bug.cgi?id=15487
Sanjay Patel <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |FIXED --- Comment #1 from Sanjay Patel <[email protected]> --- I think we now produce the ideal codegen for your test case using clang built from r233098. Sorry, but I can't cite specific commits that account for the improvements: $ ./clang -O2 -mavx 15487.c -o - -S -fomit-frame-pointer ... movq _DATA@GOTPCREL(%rip), %rax vmovups (%rax), %ymm0 vmovups 4(%rax), %ymm1 vextractf128 $1, %ymm0, %xmm2 vextractf128 $1, %ymm1, %xmm3 vpaddd %xmm1, %xmm1, %xmm1 vpaddd %xmm0, %xmm1, %xmm0 vpaddd %xmm3, %xmm3, %xmm1 vpaddd %xmm2, %xmm1, %xmm1 vinsertf128 $1, %xmm1, %ymm0, %ymm0 vmovups %ymm0, (%rax) vzeroupper retq Feel free to reopen if you disagree -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
