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]: Improve constant RTX costs a bit


2016-05-20  Uros Bizjak  <ubizjak@gmail.com>

    * gcc/config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
    Use IS_STACK_MODE when calculating cost of standard 80387 constants.
    Fallthru to CONST_VECTOR case to calculate cost of standard SSE
    constants.
    <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
    (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
    and CASE_CONST_ANY.

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]