This is the mail archive of the gcc-patches@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]

[PATCH, i386]: Optimize detection of a couple of patterns


There is no need to dynamically construct clobbers of (f)emms insn.
Also, use faster detection of vzeroall pattern.

2018-09-30  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/mmx.md (EMMS): New int iterator.
    (emms): New int attribute.
    (mmx_<emms>): Macroize insn from *mmx_emms and *mmx_femms using
    EMMS int iterator.  Explicitly declare clobbers.
    (mmx_emms): Remove expander.
    (mmx_femms): Ditto.
    * config/i386/predicates.md (emms_operation): Remove predicate.
    (vzeroall_pattern): New predicate.
    (vzeroupper_pattern): Rename from vzeroupper_operation.
    * config/i386/i386.c (ix86_avx_u128_mode_after): Use
    vzeroupper_pattern and vzeroall_pattern predicates.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN.

Uros.

Attachment: p.diff.txt
Description: Text document


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