https://llvm.org/bugs/show_bug.cgi?id=23098
Benjamin Kramer <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |FIXED --- Comment #1 from Benjamin Kramer <[email protected]> --- This is not really an assembler problem, we were emitting a suboptimal instruction from the instruction selector. That is fixed in r233832, we're now emitting an addl which as small as the smaller version of shl but has higher throughput on some microarchs. $ clang -c test.c -O3 -o test.o && objdump -d test.o test.o: file format elf64-x86-64 Disassembly of section .text: 0000000000000000 <fn1>: 0: 8b 05 00 00 00 00 mov 0x0(%rip),%eax # 6 <fn1+0x6> 6: 83 e0 7f and $0x7f,%eax 9: 01 c0 add %eax,%eax b: 89 05 00 00 00 00 mov %eax,0x0(%rip) # 11 <fn1+0x11> 11: c3 retq -- 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
