https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77689

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Clang is pretty impressive using libc++ and -Ofast:

markus@x4 /tmp % clang++ -stdlib=libc++ -Ofast vec.cpp -S -o -
        .text
        .file   "vec.cpp"
        .globl  main
        .p2align        4, 0x90
        .type   main,@function
main:                                   # @main
        .cfi_startproc
# BB#0:                                 # %cond.true.i.i
        xorl    %eax, %eax
        .p2align        4, 0x90
.LBB0_1:                                # %for.body
                                        # =>This Inner Loop Header: Depth=1
        movq    %rax, %rcx
        testq   %rcx, %rcx
        movl    $1, %eax
        je      .LBB0_1
# BB#2:                                 # %for.inc
                                        #   in Loop: Header=BB0_1 Depth=1
        incq    %rcx
        cmpq    $100000000, %rcx        # imm = 0x5F5E100
        movq    %rcx, %rax
        jne     .LBB0_1
# BB#3:                                 #
%_ZNSt3__113__vector_baseIfNS_9allocatorIfEEE5clearEv.exit.i111
        xorl    %eax, %eax
        retq
.Lfunc_end0:
        .size   main, .Lfunc_end0-main
        .cfi_endproc


        .ident  "clang version 4.0.0 (http://llvm.org/git/clang.git
bd81660d3610ae5b3c300dea369fbe0b35c89a49) (http://llvm.org/git/llvm.git
4836a1b36199ba43688ce142e898e29f2bb5cce7)"
        .section        ".note.GNU-stack","",@progbits

Reply via email to