This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/21520] missing PRE opportunity with cast after cast


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-11 22:04 -------
And we save an  instruction on x86 (both with -O2 -fomit-frame-pointer)
before:
        movl    4(%esp), %edx
        movb    $1, %al
        testl   %edx, %edx
        je      .L4
        movzbl  (%edx), %eax
.L4:
        movsbl  %al,%eax
        ret
after:
        movl    4(%esp), %edx
        movl    $1, %eax
        testl   %edx, %edx
        je      .L10
        movsbl  (%edx),%eax
.L10:
        ret

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21520


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]